private void checkClosed() throws ActiveMQException {
   if (closed) {
     throw ActiveMQClientMessageBundle.BUNDLE.consumerClosed();
   }
 }