setRemainingapprovals(numberofapprovalsleft);
setRemainingapprovals(0);
    public void reject(Approval approval) throws ApprovalRequestExpiredException,  ApprovalException {    	if(haveRequestOrApprovalExpired()){    		throw new ApprovalRequestExpiredException();    	}    	    	if(getStatus() != ApprovalDataVO.STATUS_WAITINGFORAPPROVAL){    		throw new ApprovalException("Wrong status of approval request.");    	}    	    	int numberofapprovalsleft = getRemainingapprovals() -1;    	if(numberofapprovalsleft < 0){    		throw new ApprovalException("Error already enough approvals have been done on this request.");    	}    		    	setRemainingapprovals(numberofapprovalsleft);    	Collection approvals = getApprovals();    	approvals.add(approval);    	setApprovals(approvals);    	    	setStatus(ApprovalDataVO.STATUS_REJECTED);    	setExpiredate((new Date()).getTime() + getApprovalRequest().getApprovalValidity());    	        		                                               } 