public synchronized CMDocument buildCMDocument(String publicId, String resolvedURI, String type)
{
cmDocumentCache.setStatus(resolvedURI, CMDocumentCache.STATUS_LOADING);
boolean documentCacheable = false;
if(globalCMDocumentCacheEnabled) {
GlobalCacheQueryResponse response = GlobalCMDocumentCache.getInstance().getCMDocument(resolvedURI);
CMDocument cachedCMDocument = response.getCachedCMDocument();
documentCacheable = response.isDocumentCacheable();
if(cachedCMDocument != null) {
cmDocumentCache.putCMDocument(resolvedURI, cachedCMDocument);
return cachedCMDocument;
}
}