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