{ del.getReference().decrementDeliveryCount();
{
   protected void cancelDelivery(Long messageID) throws Throwable   {      Delivery del = (Delivery)deliveries.remove(messageID);      if (del != null)      {            del.getReference().decrementDeliveryCount();              del.cancel();      }      else      {          throw new IllegalStateException("Cannot find delivery to cancel:" + id);      }   }