CMDocumentCache cache = ModelQueryUtil.getCMDocumentCache(document);
final String batchUri = ConfigCoreUtils.getSelectedSchemaLocation(document, BatchSchemaConstants.URI);
IFile file = cEditor.getResourceFile();
ProjectClasspathExtensibleUriResolver resolver = new ProjectClasspathExtensibleUriResolver();
final String resolvedBatchUri = resolver.resolve(file, null, batchUri, batchUri);
final CountDownLatch latch = new CountDownLatch(1);
if (cache.getStatus(resolvedBatchUri) == CMDocumentCache.STATUS_LOADED) {
latch.countDown();
}