return new URLClassLoader(urlsA, Globals.class.getClassLoader());
}
}
);
ModulesRegistry registry = new StaticModulesRegistry(cl);
ServiceLocator serviceLocator = registry.createServiceLocator("default");
Habitat habitat = serviceLocator.getService(Habitat.class);
ConfigParser parser = new ConfigParser(habitat);
URL domainURL = domainXMLFile.toURI().toURL();
DomDocument doc = parser.parse(domainURL);