if (replaced) {
((TestElement)item).setProperty(TestElement.GUI_CLASS,
"org.apache.jmeter.protocol.http.config.gui.UrlConfigGui");
((TestElement)item).setProperty(TestElement.NAME,"HTTP Request Defaults");
GenericController newControl = new GenericController();
newControl.setProperty(TestElement.GUI_CLASS,
"org.apache.jmeter.control.gui.LogicControllerGui");
newControl.setName("Simple Controller");
tree.replace(item, newControl);
tree.add(newControl, item);
}
} else {
updateTree(tree.getTree(item));