docs: @Override
      public IEntityGroup newGroup(Class type) throws GroupsException {
          throwExceptionIfNotInternallyManaged();
          IEntityGroup group = groupFactory.newInstance(type);
          group.setLocalGroupService(this);
          if (cacheInUse()) {
              cacheAdd(group);
          }
          return group;
      }