A self-organized multiagent approach for distributed management of contextual data