String validatorClassName = validatorEntry.getValue();
// Check that the validator ID is not the BeanValidator one which we handle in a special way.
// And make sure the default validator is not already set manually as well.
if (!validatorID.equals(BeanValidator.VALIDATOR_ID) && !containsByClassName(validators, validatorClassName)) {
validators.add(application.createValidator(validatorID));
}
}
// Set the attributes on all instantiated validators. We don't distinguish here
// which attribute should go to which validator.