if (log.isTraceEnabled()) { log.trace(this + " closed"); }
if (trace) { log.trace(this + " closed"); }
   protected boolean isReady()   {      // If the client side consumer is not ready to accept a message and have it sent to it      // or we're not grabbing a message for receiveNoWait we return null to refuse the message      if (!active && !grabbing)      {         if (log.isTraceEnabled()) { log.trace(this + " not ready"); }         return false;      }            if (closed)      {         if (log.isTraceEnabled()) { log.trace(this + " closed"); }         return false;      }            // If the consumer is stopped then we don't accept the message, it should go back into the      // channel for delivery later.      if (!started)      {         // this is a common programming error, make this visible in the debug logs         // TODO: anaylize performance implications         log.debug(this + " NOT started yet!");         return false;      }            //TODO nice all the message headers and properties are in the reference we can do the       //filter check in here too.            return true;   }