NodeList lstProtocol = (NodeList) xpath.evaluate("protocol", ndProtocols, XPathConstants.NODESET);
for (Node ndProto : new NodeListAdapter(lstProtocol)) {
String factoryClass = (String) xpath.evaluate("@factoryClass", ndProto, XPathConstants.STRING);
try {
Class fc = Class.forName(factoryClass);
ProtocolFactory factory = (ProtocolFactory) fc.newInstance();
ProtocolInitializer.init(factory, ndProto);
String resourceKey = Val.chkStr((String) xpath.evaluate("@resourceKey", ndProto, XPathConstants.STRING));
factories.put(factory.getName(), factory, resourceKey);
} catch (Exception ex) {
getLogger().log(Level.WARNING, "Error loading protocol: "+factoryClass, ex);
}
String validatorFactoryClass = Val.chkStr((String) xpath.evaluate("validator/@factoryClass", ndProto, XPathConstants.STRING));