if (violations.size() > 0) {
StringBuilder errorMessage = new StringBuilder("Bean validation error : \n");
for (ConstraintViolation<EntityWithGroupConstraint> violation : violations) {
buildValidationErrorMessage(errorMessage, violation);
}
throw new AchillesBeanValidationException(errorMessage.toString());
}
}