if(!profileauthproxy.getEndEntityProfileAuthorization(admin, data1.getEndEntityProfileId(),EndEntityProfileAuthorizationProxy.EDIT_RIGHTS)){
if(!profileauthproxy.getEndEntityProfileAuthorization(admin, data1.getEndEntityProfileId(),EndEntityProfileAuthorizationProxy.EDIT_RIGHTS, LogEntry.MODULE_RA)){
    public void setUserStatus(Admin admin, String username, int status) throws AuthorizationDeniedException, FinderException, RemoteException {        debug(">setUserStatus("+username+", "+status+")");        // Check if administrator is authorized to edit user.        if(globalconfiguration.getEnableEndEntityProfileLimitations()){                   try{            UserDataPK pk = new UserDataPK(username);            UserDataLocal data1 = home.findByPrimaryKey(pk);                          if(!profileauthproxy.getEndEntityProfileAuthorization(admin, data1.getEndEntityProfileId(),EndEntityProfileAuthorizationProxy.EDIT_RIGHTS)){                logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(),username, null, LogEntry.EVENT_ERROR_CHANGEDENDENTITY,"Administrator not authorized to change status");                                 throw new AuthorizationDeniedException("Administrator not authorized to edit user.");                          }              }          catch(FinderException e){            logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(),username, null, LogEntry.EVENT_ERROR_CHANGEDENDENTITY,"Couldn't find username in database.");                throw new EJBException(e.getMessage());                      }            }              // Find user        UserDataPK pk = new UserDataPK(username);        UserDataLocal data = home.findByPrimaryKey(pk);        data.setStatus(status);        data.setTimeModified((new java.util.Date()).getTime());                logsession.log(admin, LogEntry.MODULE_RA,  new java.util.Date(),username, null, LogEntry.EVENT_INFO_CHANGEDENDENTITY,("New status : " + status));                debug("<setUserStatus("+username+", "+status+")");    } // setUserStatus