throw new JBossJMSException("Message " + messageID + "cannot be acknowledged to the source", t);
try { d.acknowledge(tx); } catch(Throwable t) { throw new JBossJMSException("Message " + messageID + "cannot be acknowledged to the source", t); }
   synchronized void acknowledge(String messageID, Transaction tx) throws JMSException   {      if (log.isTraceEnabled()) { log.trace("acknowledging " + messageID); }            try      {         for(Iterator i = deliveries.iterator(); i.hasNext(); )         {            SingleReceiverDelivery d = (SingleReceiverDelivery)i.next();            if (d.getReference().getMessageID().equals(messageID))            {               d.acknowledge(tx);               i.remove();            }         }      }      catch(Throwable t)      {         throw new JBossJMSException("Message " + messageID + "cannot be acknowledged to the source", t);      }   }