// Check temporary destinations scope (JMS Spec 4.4.3 p2)
session.checkTemporaryDestinationScope(localTopic);
// Deploy a local queue for this consumer
TopicDefinition topicDef = this.localTopic.getDefinition();
QueueDefinition tempDef = topicDef.createQueueDefinition(topicRef.getTopicName(), subscriberId, !isDurable());
if (engine.localQueueExists(tempDef.getName()))
this.localQueue = engine.getLocalQueue(tempDef.getName());
else
this.localQueue = engine.createQueue(tempDef);
// Register on both the queue and topic
this.localQueue.registerConsumer(this);