Engineering Contextual Information for Pervasive Multiagent Systems