ConsumerDelegate consumerDelegate = delegate.createConsumerDelegate(d);
ConsumerDelegate consumerDelegate = delegate.createConsumerDelegate(d, null);
  public MessageConsumer createConsumer(Destination d) throws JMSException  {     ConsumerDelegate consumerDelegate = delegate.createConsumerDelegate(d);     return new JBossMessageConsumer(consumerDelegate, d);  }