DocumentBuilder builder = publication.getDocumentBuilder();
DocumentIdentifier identifier = new DocumentIdentifier(publicationId, area, uuid,
language);
document = buildDocument(this, identifier, revision, builder);
} catch (Exception e) {
throw new RepositoryException(e);
}
if (getLogger().isDebugEnabled())
getLogger().debug("DocumentFactory::build() done.");
return document;