if (Audience.findByTitleAndEvent(formAudience.getTitle(),getEvent()) != null) {
return badRequest(toJson(TransformValidationErrors.transform(Messages.get("error.audience.already.exist"))));
}
formAudience.setEvent(getEvent());
formAudience.save();
} else {
// Mise à jour d'un track
Audience dbAudience = Audience.find.byId(formAudience.getId());
if (!formAudience.getTitle().equals(dbAudience.getTitle())
&& Audience.findByTitleAndEvent(formAudience.getTitle(),getEvent()) != null) {