1. An apparatus comprising: at least one processor; a memory coupled to the at least one processor; a repository residing in the memory that includes a plurality of objects; and a content management system residing in the memory and executed by the at least one processor, the content management system managing the plurality of objects in the repository, the content management system comprising: an external data mechanism that processes a document containing a query to a data source external to the repository, executes the query, creates a query object in the repository that is separate from the document and contains the query, creates from data returned from the query a returned data object in the repository that is separate from the document, and creates a link between the query object and the returned data object, wherein the returned data object is created in the repository according to classification rules that determine from a type of the data returned from the query a corresponding type for the returned data object, wherein the external data mechanism creates a lifecycle corresponding to the query object that specifies at least one condition, and when the at least one condition is satisfied, the query in the query object is executed, the returned data object is updated with the query results, and the updated data in the returned data object is used, and when the at least one condition is not satisfied, the link between the query object and the returned data object is broken to lock down the returned data object to prevent the update, the query in the query object is not executed and existing data in the returned data object is used.