sessionDelegate.createConsumerDelegate(topic, null, true, name);
sessionDelegate.createConsumerDelegate(topic, null, false, name);
   public TopicSubscriber createDurableSubscriber(Topic topic, String name) throws JMSException   {      //As per spec. section 4.11      if (sessionType == TYPE_QUEUE_SESSION)      {         throw new IllegalStateException("Cannot create a durable subscriber on a QueueSession");      }      ConsumerDelegate consumerDelegate =            sessionDelegate.createConsumerDelegate(topic, null, true, name);      return new JBossMessageConsumer(consumerDelegate, false);   }