logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_EDITEDADMINISTRATORPRIVILEGES,"Error adding administratorgroup "  + admingroupname + "."); }catch( RemoteException re){}
logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_EDITEDADMINISTRATORPRIVILEGES,"Error adding administratorgroup "  + admingroupname + "."); }catch( RemoteException re){ error("Can't write log: ",re); }
    public boolean addAdminGroup(Admin admin, String admingroupname){      boolean returnval=true;      try{        admingrouphome.findByPrimaryKey(admingroupname);        returnval=false;      }catch(FinderException e){      }      if(returnval){        try{          admingrouphome.create(admingroupname);          returnval=true;        }catch(CreateException e){           returnval=false;        }      }            try{        if(returnval)          logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_INFO_EDITEDADMINISTRATORPRIVILEGES,"Administratorgroup " + admingroupname + " added.");                    else          logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_EDITEDADMINISTRATORPRIVILEGES,"Error adding administratorgroup "  + admingroupname + ".");            }catch( RemoteException re){}            return returnval;    } // addAdminGroup