HK2Populator.populate(serviceLocator, new ClasspathDescriptorFileFinder(cl), null);
} catch (IOException e) {
logger.log(Level.SEVERE, "Error initializing HK2", e);
}
ConfigParser parser = new ConfigParser(serviceLocator);
URL domainURL = domainXMLFile.toURI().toURL();
DomDocument doc = parser.parse(domainURL);
Dom domDomain = doc.getRoot();
Domain domain = domDomain.createProxy(Domain.class);
Nodes nodes = domain.getNodes();
for (Node node : nodes.getNode()) {