Element dRule = (Element)list.item(i);
NodeList cNodeList = dRule.getElementsByTagName("ClassName");
Element cn = (Element)cNodeList.item(0);
String className = cn.getFirstChild().getNodeValue().trim();
Class rc = Class.forName(className);
DiagnosticTest test = (DiagnosticTest)rc.newInstance();
test.initGlobals(pa.getJobExecutionStatistics(), (Element)list.item(i));
test.run();
NodeList nodelist = pa.getReport().getElementsByTagName("PostExPerformanceDiagnosticReport");
Element root = (Element)nodelist.item(0);
//root.appendChild(rule.getReportElement(pa.getReport(), root));
Element re = test.getReportElement(pa.getReport(), root, i);
//XMLUtils.printDOM(re);
}
//Optionally print or save the report
if (pa.getReportFile() == null) {