attList.addNamespaceDeclaration("ext", ExtParserModule.NAMESPACE);
xmlWriter.writeTag(BundleNamespaces.LAYOUT, "legacy", attList, XmlWriterSupport.OPEN);
writeElementBody(bundle, state, element, xmlWriter);
final ReportWriter writer = new ReportWriter(state.getMasterReport(), "UTF-8");
writer.addClassFactoryFactory(new URLClassFactory());
writer.addClassFactoryFactory(new DefaultClassFactory());
writer.addClassFactoryFactory(new BandLayoutClassFactory());
writer.addClassFactoryFactory(new ArrayClassFactory());
writer.addStyleKeyFactory(new DefaultStyleKeyFactory());
writer.addStyleKeyFactory(new PageableLayoutStyleKeyFactory());
writer.addTemplateCollection(new DefaultTemplateCollection());
writer.addElementFactory(new DefaultElementFactory());
writer.addDataSourceFactory(new DefaultDataSourceFactory());
final DataSource datasource = element.getDataSource();
if (datasource instanceof EmptyDataSource)
{
// do nothing ..