String resource= null;
    public boolean endEntityAuthorization(Admin admin, int profileid, String rights, boolean log) throws RemoteException {      boolean returnval = false;      String resource= null;      String adm = null;            // TODO FIX      if(admin.getAdminInformation().isSpecialUser()){        adm = Integer.toString(admin.getAdminInformation().getSpecialUser());        return true;      }      try{        if(log)           returnval = authorizationsession.isAuthorized(admin, AvailableAccessRules.ENDENTITYPROFILEPREFIX+Integer.toString(profileid)+rights);        else           returnval = authorizationsession.isAuthorizedNoLog(admin, AvailableAccessRules.ENDENTITYPROFILEPREFIX+Integer.toString(profileid)+rights);      }catch(AuthorizationDeniedException e){}      return returnval;    }    