for (ConstraintViolation<T> constraintViolation : constraintViolationSet) {
String validationErrorMessage = new StringBuilder()
.append("Invalid value '").append(constraintViolation.getInvalidValue()).append("' ")
.append("for property '").append(constraintViolation.getPropertyPath()).append("' : ")
.append(constraintViolation.getMessage()).toString();
validationErrors.add(new ValidationError(validationErrorMessage));
}
return validationErrors;
}