private void cancelEventLeaseDo(long eventID,Uuid leaseID) throws UnknownLeaseException {
  long now=System.currentTimeMillis();
  EventReg reg=(EventReg)eventByID.get(new Long(eventID));
  if (reg == null || reg.leaseExpiration <= now)   throw new UnknownLeaseException();
  deleteEvent(reg);
  if (reg.leaseExpiration == minEventExpiration)   concurrentObj.waiterNotify(eventNotifier);
}

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