Active Documents is a technique for automating the handling and control of documents by making them a combination of service providers (mobile agents) and resources (compound documents) in the form of autonomous agents. The main focus of this solution is to provide an encapsulation of documents, including their data structures and related functionality, but also to enable documents to reflect upon themselves in respect of their computational environment, and take actions accordingly.