@Override public CommandProcessingResult createEventValidation(JsonCommand command) { try { this.context.authenticatedUser(); /* this.apiJsonDeserializer.validateForCreate(command.json()); */ final EventValidation eventValidation = EventValidation.fromJson(command); this.eventValidationRepository.save(eventValidation); return new CommandProcessingResult(eventValidation.getId()); } catch (DataIntegrityViolationException dve) { handleCodeDataIntegrityIssues(command, dve); return null; } }