if (element instanceof AbstractReportDefinition == false)
{
throw new IllegalArgumentException();
}
final AttributeList rootAttributes = new AttributeList();
rootAttributes.addNamespaceDeclaration("", BundleNamespaces.LAYOUT);
rootAttributes.addNamespaceDeclaration("style", BundleNamespaces.STYLE);
rootAttributes.addNamespaceDeclaration("core", AttributeNames.Core.NAMESPACE);
rootAttributes.addNamespaceDeclaration("html", AttributeNames.Html.NAMESPACE);
rootAttributes.addNamespaceDeclaration("swing", AttributeNames.Swing.NAMESPACE);
rootAttributes.addNamespaceDeclaration("pdf", AttributeNames.Pdf.NAMESPACE);
rootAttributes.addNamespaceDeclaration("wizard", AttributeNames.Wizard.NAMESPACE);
final AttributeList attList = createMainAttributes(element, xmlWriter, rootAttributes);
xmlWriter.writeTag(BundleNamespaces.LAYOUT, "layout", attList, XmlWriterSupport.OPEN);
final AbstractReportDefinition report = (AbstractReportDefinition) element;
final ReportPreProcessor[] processors = report.getPreProcessors();
for (int i = 0; i < processors.length; i++)