private void cancelEventLeaseDo(long eventID,Uuid leaseID) throws UnknownLeaseException {
  long now=SystemTime.timeMillis();
  EventReg reg=eventByID.get(eventID);
  if (reg == null || reg.leaseExpiration <= now)   throw new UnknownLeaseException();
  deleteEvent(null,reg);
}

private void cancelEventLeaseDo ( long eventID , Uuid leaseID ) throws UnknownLeaseException { long now = SystemTime . timeMillis ( ) ; EventReg reg = eventByID . get ( eventID ) ; if ( reg == null || reg . leaseExpiration <= now ) throw new UnknownLeaseException ( ) ; deleteEvent ( null , reg ) ; }
the code that does the real work of canceleventlease .
