setApprovaldata(new String(Base64.encode(baos.toByteArray())));
oos.flush(); setRequestdata(new String(Base64.encode(baos.toByteArray(),false)));
    private void setApprovalRequest(ApprovalRequest approvalRequest){    	try{    	ByteArrayOutputStream baos = new ByteArrayOutputStream();    	ObjectOutputStream oos = new ObjectOutputStream(baos);    	oos.writeObject(approvalRequest);    	    	setApprovaldata(new String(Base64.encode(baos.toByteArray())));    	}catch(IOException e){			log.error("Error building approval request.",e);			throw new EJBException(e);   		    	}    }