parser.parse(new InputSource(reader));
ListedHashTree tree = handler.getDataTree();
println("Created the tree successfully");
NonGuiTree ngt = new NonGuiTree();
ngt.addSubTree(tree, null);
TestPlan tp = (TestPlan)ngt.compileComponent(ngt.getChildAt(0));
println("Compiled the Test Plan successfully");
Collection groups = tp.getThreadGroups();
StandardJMeterEngine engine = new StandardJMeterEngine();
for (Iterator i = groups.iterator(); i.hasNext(); ) {