{
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;
}
}
CMDocument result = null;
if (resolvedURI != null && resolvedURI.length() > 0)
{
// TODO... pass the TYPE thru to the CMDocumentBuilder
result = ContentModelManager.getInstance().createCMDocument(resolvedURI, type);
}