Node node = nodes.item(i);
if (node.getNodeType() != Node.ELEMENT_NODE) {
continue;
}
Element ruleDefinition = (Element) node;
PropertyValidationElementHandler handler = handlerRegistry.findPropertyHandler(ruleDefinition, clazz, propertyDescriptor);
if (handler == null) {
logger.error("Could not handle element '" + ruleDefinition.getTagName() +
"'. Please make sure the proper validation rule definition handler is registered");
throw new ValidationConfigurationException("Could not handle element '" + ruleDefinition.getTagName() + "'");
}
handler.handle(ruleDefinition, propertyName, configuration);
}
}