String validatorFactoryClass = Val.chkStr((String) xpath.evaluate("validator/@factoryClass", ndProto, XPathConstants.STRING));
if (!validatorFactoryClass.isEmpty()) {
try {
Class fc = Class.forName(validatorFactoryClass);
IValidatorFactory factory = (IValidatorFactory) fc.newInstance();
ValidatorFactory.register(factory);
} catch (Exception ex) {
getLogger().log(Level.WARNING, "Error loading protocol validator factory: "+validatorFactoryClass, ex);
}
}