if (formEvent.getId() == null) {
// Nouvel Evénement
if (Event.findByName(formEvent.getName()) != null) {
return badRequest(toJson(TransformValidationErrors.transform(Messages.get("error.event.already.exist"))));
}
formEvent.save();
List<User> organizersInDb = new ArrayList<User>();
for (User organizer : formEvent.getOrganizers()) {
organizersInDb.add(User.findById(organizer.id));
}
formEvent.getOrganizers().clear();