if (log.isTraceEnabled()) { log.trace(this + ": adding " + ref + " to non-recoverable state"); }
if (trace) { log.trace(this + ": adding " + ref + " to non-recoverable state"); }
      public void afterCommit()      {         for(Iterator i = refs.iterator(); i.hasNext(); )         {            MessageReference ref = (MessageReference)i.next();            if (log.isTraceEnabled()) { log.trace(this + ": adding " + ref + " to non-recoverable state"); }            boolean first = messageRefs.addLast(ref, ref.getPriority());                                               if (first)            {               //No need to call prompt delivery if there are already messages in the queue               channel.deliver(null);            }         }                  txToAddReferenceCallbacks.remove(tx);      } 