if (log.isTraceEnabled()) { log.trace(this + " setting done to true"); }
if (trace) { log.trace(this + " setting done to true"); }
   public synchronized void acknowledge(Transaction tx) throws Throwable   {      if (log.isTraceEnabled()) { log.trace(this + " acknowledging delivery in tx:" + tx); }            // deals with the race condition when acknowledgment arrives before the delivery      // is returned back to the sending delivery observer            observer.acknowledge(this, tx);      if (tx == null)      {         if (log.isTraceEnabled()) { log.trace(this + " setting done to true"); }         //TODO Why don't we set done to true if the ack is transactional???         //     http://jira.jboss.org/jira/browse/JBMESSAGING-173         done = true;      }   }