approval.setApprovalCertificateAndUsername(approvingCert,username);
approval.setApprovalCertificateAndUsername(false, approvingCert,username);
    public void reject(Admin admin, int approvalId, Approval approval) throws ApprovalRequestExpiredException,                                                                                 AuthorizationDeniedException,  ApprovalException{    	log.debug(">reject");    	ApprovalDataLocal adl;		try {			adl = isAuthorizedBeforeApproveOrReject(admin,approvalId,approval);		} catch (ApprovalException e1) {			getLogSession().log(admin,admin.getCaId(),LogEntry.MODULE_RA,new Date(),null,null,LogEntry.EVENT_ERROR_APPROVALREJECTED,"Approval request with id : " +approvalId +" doesn't exists.");			throw e1;		} 				// Check that the approvers username doesn't exists among the existing usernames.    	X509Certificate approvingCert = admin.getAdminInformation().getX509Certificate();		String username = getCertificateStoreSession().findUsernameByCertSerno(admin,approvingCert.getSerialNumber(),CertTools.getIssuerDN(approvingCert));		if(username != null){			ApprovalDataVO data = adl.getApprovalDataVO();			Iterator iter = data.getApprovals().iterator();			while(iter.hasNext()){				Approval next = (Approval) iter.next();				if(next.getUsername().equals(username)){					getLogSession().log(admin,adl.getCaid(),LogEntry.MODULE_RA,new Date(),null,null,LogEntry.EVENT_ERROR_APPROVALREJECTED,"Error administrator have already approved or rejected current request, approveId ");					throw new ApprovalException("Error administrator have already approved or rejected current request, approveId : " + approvalId);									}			}			approval.setApprovalCertificateAndUsername(approvingCert,username);		}else{			getLogSession().log(admin,adl.getCaid(),LogEntry.MODULE_RA,new Date(),null,null,LogEntry.EVENT_ERROR_APPROVALREJECTED,"Approval request with id : " +approvalId +", Error no username exists for the given approver certificate.");			throw new ApprovalException("Error no username exists for the given approver certificate");		}				    	    	try {			adl.reject(approval);			getLogSession().log(admin,adl.getCaid(),LogEntry.MODULE_RA,new Date(),null,null,LogEntry.EVENT_INFO_APPROVALREJECTED,"Approval request with id : " +approvalId +" have been rejected.");		} catch (ApprovalRequestExpiredException e) {			getLogSession().log(admin,adl.getCaid(),LogEntry.MODULE_RA,new Date(),null,null,LogEntry.EVENT_ERROR_APPROVALREJECTED,"Approval request with id : " +approvalId +" have expired.");			throw e;		}		log.debug("<reject");    }