log.debug("read xml: " + url.getPath());
XMLParser xml = new XMLParser(url.getPath());
List<XmlServerNode> nodes = xml.getServers();
XmlServerNode serverinfo = null;
for (XmlServerNode node : nodes) {
if (server.matches(node.getPattern())) {
log.info("Server found:" + node.getName());
serverinfo = node;
break;
}
}
if (serverinfo == null) {
log.warn("Server not found");
throw new ServerNotSupportedException();
}
log.debug("search in xml file for class");
String classformxml = serverinfo.getModule();
log.debug("class found: " + classformxml);
return getModuleClass(classformxml);
}