if (log.isTraceEnabled()) { log.trace("added an Add callback to transaction " + tx); }
if (trace) { log.trace("added an Add callback to transaction " + tx); }
   public void addReference(MessageReference ref, Transaction tx) throws Throwable   {          super.addReference(ref, tx);      if (ref.isReliable())      {         // Reliable message in a recoverable state - also add to db         if (log.isTraceEnabled()) { log.trace("adding " + ref + (tx == null ? " to database non-transactionally" : " in transaction: " + tx)); }         tl.addReference(channelID, ref, tx);      }      addAddReferenceCallback(tx); //FIXME What is the point of this??      if (log.isTraceEnabled()) { log.trace("added an Add callback to transaction " + tx); }               }