docs: @Override
      public IEntity getEntity(String key, Class type) throws GroupsException {
          IEntity ent = primGetEntity(key, type);
  
          if (cacheInUse()) {
              try {
                  IEntity cachedEnt = getEntityFromCache(ent.getEntityIdentifier().getKey());
                  if (cachedEnt == null) {
                      cacheAdd(ent);
                  } else {
                      ent = cachedEnt;
                  }
              } catch (CachingException ce) {
                  throw new GroupsException(
                          "Problem retrieving group member " + type + "(" + key + ")", ce);
              }
          }
          return ent;
      }