if (config.getPropertyAsString(TestElement.TEST_CLASS).equals(
"org.apache.jmeter.protocol.http.config.UrlConfig")) {
replaced = true;
HTTPSampler newControl = new HTTPSampler();
newControl.setName((String)((TestElement)item).getProperty(TestElement.NAME));
newControl.addTestElement( config);
newControl.setProperty(TestElement.GUI_CLASS,
"org.apache.jmeter.protocol.http.control.gui.HttpTestSampleGui");
tree.getTree(item).replace(config, newControl);
}
}