(admingrouphome.findByPrimaryKey(new AdminGroupPK(admingroupname, caid))).removeAdminEntities(adminentities);
(admingrouphome.findByGroupNameAndCAId(admingroupname, caid)).removeAdminEntities(adminentities);
    public void removeAdminEntities(Admin admin, String admingroupname, int caid, Collection adminentities){      if(!(admingroupname.equals(DEFAULTGROUPNAME) && caid == ILogSessionLocal.INTERNALCAID)){        try{          (admingrouphome.findByPrimaryKey(new AdminGroupPK(admingroupname, caid))).removeAdminEntities(adminentities);          signalForAuthorizationTreeUpdate();          logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_INFO_EDITEDADMINISTRATORPRIVILEGES,"Removed administrator entities from administratorgroup " + admingroupname);        }catch(Exception e){          error("Can't add admin entities: ",e);          logsession.log(admin, caid, LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_EDITEDADMINISTRATORPRIVILEGES,"Error removing administrator entities from administratorgroup " + admingroupname);        }      }      } // removeAdminEntity