}
@Catch(ValidationException.class)
public static void manageValidationException(Throwable throwable) {
response.status = StatusCode.BAD_REQUEST;
ValidationException validationException = (ValidationException) throwable;
Map<String, String> errorsMap = new HashMap<String, String>();
for(play.data.validation.Error error : validationException.getErrors()) {
if(error.getKey().contains(".")) {
errorsMap.put(error.getKey().substring(error.getKey().indexOf(".")+1),
error.message());
}