d.getReference().acquireReference();
d.getReference().acquire();
   public void redeliver(Set dels) throws Throwable   {      //Add the deliveries      Iterator iter = dels.iterator();            //We also acquire a reference for every *extra* delivery we have over 1.      //This is because we already have a reference for the ref so we don't want to get that      //again      int count = 0;      while (iter.hasNext())      {         Delivery d = (Delivery)iter.next();                  deliveries.add(d);                  if (count != 0)         {            d.getReference().acquireReference();         }                  count++;      }   }