ServerManagement.setSecurityConfig("testTopic", toElement(testTopicConf));
ServerManagement.setSecurityConfig("testTopic", testTopicConf);
   private void setupDestinations() throws Exception   {      ServerManagement.undeployQueue("testQueue");      ServerManagement.deployQueue("testQueue");                  final String testQueueConf =          "<security>" +            "<role name=\"guest\" read=\"true\" write=\"true\"/>" +            "<role name=\"publisher\" read=\"true\" write=\"true\" create=\"false\"/>" +            "<role name=\"noacc\" read=\"false\" write=\"false\" create=\"false\"/>" +         "</security>";                           ServerManagement.setSecurityConfig("testQueue", toElement(testQueueConf));            ServerManagement.undeployTopic("testTopic");      ServerManagement.deployTopic("testTopic");                  final String testTopicConf =          "<security>" +            "<role name=\"guest\" read=\"true\" write=\"true\"/>" +            "<role name=\"publisher\" read=\"true\" write=\"true\" create=\"false\"/>" +            "<role name=\"durpublisher\" read=\"true\" write=\"true\" create=\"true\"/>" +         "</security>";                           ServerManagement.setSecurityConfig("testTopic", toElement(testTopicConf));            ServerManagement.undeployTopic("securedTopic");      ServerManagement.deployTopic("securedTopic");            final String testSecuredTopicConf =          "<security>" +                     "<role name=\"publisher\" read=\"true\" write=\"true\" create=\"false\"/>" +         "</security>";                           ServerManagement.setSecurityConfig("testSecuredTopic", toElement(testSecuredTopicConf));            ServerManagement.undeployTopic("unsecuredTopic");      ServerManagement.deployTopic("unsecuredTopic");         }