uid.write (objOut);
//If the lease we were passed has a valid VM ID, write it
if (lease.getVMID () != null) {
log.log (Level.FINEST, "Writing old lease object");
objOut.writeObject (lease);
}
//If not, create a valid lease and write it
else {
log.log (Level.FINEST, "Writing new lease object");
objOut.writeObject (new Lease (new VMID (), lease.getValue ()));