Delivery del = (Delivery)deliveries.remove(new Long(deliveryId));
if (trace) {log.trace(this + " cancelDelivery " + cancel); }
   void cancelDelivery(long deliveryId) throws Throwable   {      Delivery del = (Delivery)deliveries.remove(new Long(deliveryId));            if (del == null)      {         throw new IllegalStateException("Cannot find delivery to cancel " + deliveryId);      }            del.cancel();   }