code: private boolean existsInDatabase(IEntityGroup group) throws GroupsException {
          IEntityGroup ug = this.find(group.getLocalKey());
          return ug != null;
      }
docs: Answer if the IEntityGroup entity exists in the database.
  
  @return boolean
  @param group IEntityGroup