private static StringBuilder getExtensionsXML(SiteNode site) {
StringBuilder extensionXml = new StringBuilder();
ExtensionLoader loader = Control.getSingleton().getExtensionLoader();
int extensionCount = loader.getExtensionCount();
for(int i=0; i<extensionCount; i++) {
Extension extension = loader.getExtension(i);
if(extension instanceof XmlReporterExtension) {
extensionXml.append(((XmlReporterExtension)extension).getXml(site));
}
}
return extensionXml;