<?xml version="1.0" encoding="UTF-8"?>
<!--
  Automatically generated by DeploymentService
  ===================================================================
  QueueName          - $QueueName
  DestinationManager - $DestinationManager
  SecurityManager    - $SecurityManager
  SecurityRoles      - $SecurityRoles   
  ===================================================================
-->
<server>
  <mbean code="org.jboss.mq.server.jmx.Queue"
	 name="jboss.mq.destination:service=Queue,name=$QueueName">
         
    <depends optional-attribute-name="DestinationManager">$DestinationManager</depends>
#if($SecurityManager)
    <depends optional-attribute-name="SecurityManager">$SecurityManager</depends>
#end
#if($SecurityRoles)
    <attribute name="SecurityConf">
      <security>
#foreach($role in $SecurityRoles)      
        <role name="#firstToken($role ':')" #ifDefReplace($role "read" 'read="true"') #ifDefReplace($role "write" 'write="true"') #ifDefReplace($role "create" 'create="true"')/>
#end        
      </security>
    </attribute>
#end
  </mbean>
</server>