Set<ModelValidation> modelValidationAnnotations = AnnotationUtils
.getRepeatableAnnotation(accessibleObject,
ModelValidations.class, ModelValidation.class);
if (!modelValidationAnnotations.isEmpty()) {
for (ModelValidation modelValidationAnnotation : modelValidationAnnotations) {
AbstractValidation modelValidation = AbstractValidation
.createValidation(name, modelValidationAnnotation,
outputConfig.getIncludeValidation());
if (modelValidation != null) {
model.addValidation(modelValidation);
}