}
deleteQueuesConfigFile();
doc = createDocument();
refreshSimpleDocument(doc);
writeToFile(doc, QUEUES_CONFIG_FILE_PATH);
QueueConfigurationParser cp = new QueueConfigurationParser(QUEUES_CONFIG_FILE_PATH, true);
qm.getRoot().isHierarchySameAs(cp.getRoot());
qm.setQueues(
cp.getRoot().getChildren().toArray(
new Queue[cp.getRoot().getChildren().size()]));
Queue afterRefreshRoot = qm.getRoot();
//remove the file and create new one.
rootQueues = afterRefreshRoot.getChildren();
for (Queue qs : rootQueues) {
if (qs.getName().equals("q1")) {