if (!failures.isEmpty()) {
response.setStatus(HttpServletResponse.SC_BAD_REQUEST);
return validationMessages(failures);
} else {
this.projectService.updateProject(project);
SerializableProject sp = new SerializableProject(project.getId(), project.getName(),
project.getDescription(), project.getCreationDate());
return Collections.singletonMap("project", sp);
}
}