@Override
 public void validateField(Object target, Field field, String scope, Errors errors) {
   if (field.isAnnotationPresent(NamedConstraint.class)) {
     NamedConstraintValidator validator = getValidatorForField(field);
     validator.validateField(target, field, errors);
   }
 }
 @Autowired
 public AllNamedConstraintValidators(Set<NamedConstraintValidator> constraintValidators) {
   this.constraintValidators = new HashMap<String, NamedConstraintValidator>();
   for (NamedConstraintValidator constraintValidator : constraintValidators) {
     this.constraintValidators.put(constraintValidator.getConstraintName(), constraintValidator);
   }
 }