code: protected IEntity primGetEntity(String key, Class type) throws GroupsException {
          return entityFactory.newInstance(key, type);
      }
docs: Returns an <code>IEntity</code> representing a portal entity. This does not guarantee that
  the underlying entity actually exists.