boolean errorFound = false;
BeanReferenceXmlValidationContextHelper context = new BeanReferenceXmlValidationContextHelper(validator,
attribute, parent, file, config, contextElement, reporter, reportError);
String attributeName = attribute.getName();
context.setCurrentRuleDefinition(ruleDefinition);
rule.validate(parent, attributeName, context);
errorFound |= context.getErrorFound();
if (errorFound) {
return true;