map.put("xmi", new XMIResourceFactoryImpl());
map.put("ecore", new XMIResourceFactoryImpl());
EPackage.Registry.INSTANCE.put("http://www.emftext.org/java/", JavaPackage.eINSTANCE);
ResourceSet resourceSet = new ResourceSetImpl();
Resource umlMetamodel = resourceSet.createResource(
InterpreterTest.resolveURI(URI.createURI("file://input/Metamodel_uml.ecore")));
if(!umlMetamodel.isLoaded()){
log.debug("Loading Parameter-metamodel" + umlMetamodel.getURI().toString());
umlMetamodel.load(Collections.EMPTY_MAP);
while(!umlMetamodel.isLoaded()){
Thread.yield();
}
log.debug("isLoaded");
}
resourceSet.getPackageRegistry().put("http://www.reuseware.org/metamodel_uml", umlMetamodel.getContents().get(0));
}