public Lease dirty(ObjID[] ids, long sequenceNum, Lease lease) throws RemoteException { VMID vmid = lease.getVMID(); if (vmid == null) vmid = new VMID(); long leaseValue = LEASE_VALUE;  lease = new Lease(vmid, leaseValue); synchronized(leaseCache){ LeaseRecord lr = (LeaseRecord)leaseCache.get(vmid); if (lr != null) lr.reset(leaseValue); else{ lr = new LeaseRecord(vmid, leaseValue); leaseCache.put(vmid, lr); } }  return (lease); }
public Lease dirty(ObjID[] ids, long sequenceNum, Lease lease) throws RemoteException {  long leaseValue = lease.getValue();   if (leaseValue <= 0) leaseValue = LEASE_VALUE;    new RefProtector(ids, leaseValue);  lease = new Lease(lease.getVMID(), leaseValue); return lease; }
public Lease dirty(ObjID[] ids, long sequenceNum, Lease lease) throws RemoteException {	VMID vmid = lease.getVMID();    	if (vmid == null)    	    vmid = new VMID();    	long leaseValue = LEASE_VALUE;    	//long leaseValue = lease.getValue();    lease = new Lease(vmid, leaseValue);        synchronized(leaseCache){            LeaseRecord lr = (LeaseRecord)leaseCache.get(vmid);            if (lr != null)                lr.reset(leaseValue);            else{                lr = new LeaseRecord(vmid, leaseValue);                leaseCache.put(vmid, lr);            }        }        	return (lease);}