code: public QueueDefinition createQueueDefinition( String topicName , String consumerId , boolean temporary )
      {
          QueueDefinition def = new QueueDefinition();
          def.setName(DestinationTools.getQueueNameForTopicConsumer(topicName, consumerId));
          def.setTemporary(temporary);
          copyAttributesTo(def);
          
          return def;
      }
docs: Create a queue definition from this template