class KeyCloakGroupManager extends BaseKeyCloakManager implements GroupManager,
                                                                         ContextualManager {

    @Override
    public Group create(Group entity) throws SecurityManagementException {
        checkNotNull("entity",
                     entity);
        consumeRealm(realmResource -> {
            final RolesResource rolesResource = realmResource.roles();
            final RoleRepresentation roleRepresentation = new RoleRepresentation(entity.getName(), entity.getName(), Boolean.FALSE);
            roleRepresentation.setId(entity.getName());
            roleRepresentation.setComposite(false);
            final ClientResponse response = (ClientResponse) rolesResource.create(roleRepresentation);
            handleResponse(response);
        });
        return entity;
    }

    public  KeyCloakGroupManager();

}