throw new UIMARuntimeException(UIMARuntimeException.UIMA_ECORE_NOT_FOUND, new Object[0]);
}
Resource uimaEcoreResource = resourceSet.getResource(URI.createURI(uimaEcoreUrl.toString()),
true);
// register core UIMA packages (I'm surprised I need to do this manually)
TreeIterator iter = uimaEcoreResource.getAllContents();
while (iter.hasNext()) {
Object current = iter.next();
if (current instanceof EPackage) {
EPackage pkg = (EPackage) current;
EPackage.Registry.INSTANCE.put(pkg.getNsURI(), pkg);
if (aSchemaLocationMap != null) {
String schemaLoc = uimaEcoreResource.getURI() + "#"