if(!profileauthproxy.getEndEntityProfileAuthorization(admin, data.getEndEntityProfileId(),EndEntityProfileAuthorizationProxy.REVOKE_RIGHTS)){
if(!profileauthproxy.getEndEntityProfileAuthorization(admin, data.getEndEntityProfileId(),EndEntityProfileAuthorizationProxy.REVOKE_RIGHTS, LogEntry.MODULE_RA)){
    public void revokeCert(Admin admin, BigInteger certserno, String username, int reason) throws AuthorizationDeniedException,FinderException, RemoteException{        debug(">revokeCert("+certserno+", " + username + ")");         UserDataPK pk = new UserDataPK(username);        UserDataLocal data;        try {            data = home.findByPrimaryKey(pk);        } catch (ObjectNotFoundException oe) {            throw new EJBException(oe);                    }                         if(globalconfiguration.getEnableEndEntityProfileLimitations()){           if(!profileauthproxy.getEndEntityProfileAuthorization(admin, data.getEndEntityProfileId(),EndEntityProfileAuthorizationProxy.REVOKE_RIGHTS)){            logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(),username, null, LogEntry.EVENT_ERROR_REVOKEDENDENTITY,"Administrator not authorized");                       throw new AuthorizationDeniedException("Not authorized to revoke user : " + username + ".");          }        }         certificatesession.setRevokeStatus(admin, certserno, reason);                if(certificatesession.checkIfAllRevoked(admin, username)){                    setUserStatus(admin, username, UserDataRemote.STATUS_REVOKED);          logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(),username, null, LogEntry.EVENT_INFO_REVOKEDENDENTITY,"");          }          debug("<revokeCert()");    } // revokeUser    