log.error(String.format("Identity %s already belong to %d groups",createGroupServiceDto.getRequesterId(),allExistingParents.size()));
thrownewAppException(HttpStatus.PRECONDITION_FAILED.value(),HttpStatus.PRECONDITION_FAILED.getReasonPhrase(),String.format("%s's group quota hit. Identity can't belong to more than %d groups",createGroupServiceDto.getRequesterId(),EntityNode.MAX_PARENTS));
...
...
@@ -63,6 +64,7 @@ public class CreateGroupService {
thrownewAppException(HttpStatus.BAD_REQUEST.value(),HttpStatus.BAD_REQUEST.getReasonPhrase(),"Invalid group, bootstrap groups are not allowed to be deleted");