protected void handleMethodDefinition(Element methodDefinition, Class clazz, MutableBeanValidationConfiguration configuration) {
String methodName = methodDefinition.getAttribute(NAME_ATTR);
if (!StringUtils.hasText(methodName)) {
logger.error("Could not parse method element. Missing or empty 'name' attribute");
throw new ValidationConfigurationException("Could not parse method element. Missing 'name' attribute");
}
String errorCode = methodDefinition.getAttribute(CODE_ATTR);
String message = methodDefinition.getAttribute(MESSAGE_ATTR);
String argsString = methodDefinition.getAttribute(ARGS_ATTR);