if (d == null) { throw new InvalidDestinationException("Cannot create a consumer with a null destination"); }
  public MessageConsumer createConsumer(Destination d) throws JMSException  {     ConsumerDelegate consumerDelegate =           sessionDelegate.createConsumerDelegate(d, null, false, null);     return new JBossMessageConsumer(consumerDelegate, false);  }