in service/src/main/java/org/apache/fineract/cn/identity/rest/PermittableGroupRestController.java [58:69]
ResponseEntity<Void> create(@RequestBody @Valid final PermittableGroup instance)
{
if (instance == null)
throw ServiceException.badRequest("Instance may not be null.");
if (service.findByIdentifier(instance.getIdentifier()).isPresent())
throw ServiceException.conflict("Instance already exists with identifier:" + instance.getIdentifier());
final CreatePermittableGroupCommand createCommand = new CreatePermittableGroupCommand(instance);
this.commandGateway.process(createCommand);
return new ResponseEntity<>(HttpStatus.ACCEPTED);
}