engine = new StandardJMeterEngine();
HashTree testTree = gui.getTreeModel().getTestPlan();
convertSubTree(testTree);
DisabledComponentRemover remover =
new DisabledComponentRemover(testTree);
testTree.traverse(remover);
testTree.add(testTree.getArray()[0], gui.getMainFrame());
log.debug(
"test plan before cloning is running version: "
+ ((TestPlan) testTree.getArray()[0]).isRunningVersion());
TreeCloner cloner = new TreeCloner(false);