List<Validator> validators = getValidators();
assertTrue(!validators.isEmpty(), "no validators");
if (validators.size() > 1) {
AllOfValidator all = new AllOfValidator();
all.setValidators(validators);
try {
all.afterPropertiesSet();
} catch (Exception e) {
throw new IllegalArgumentException(e);
}
validators = createArrayList((Validator) all);