classFactory.addFactory(new URLClassFactory());
classFactory.addFactory(new DefaultClassFactory());
classFactory.addFactory(new BandLayoutClassFactory());
classFactory.addFactory(new ArrayClassFactory());
final DataSourceCollector dataSourceFactory = new DataSourceCollector();
dataSourceFactory.addFactory(new DefaultDataSourceFactory());
final TemplateCollector templateFactory = new TemplateCollector();
templateFactory.addTemplateCollection(new DefaultTemplateCollection());
classFactory.configure(rootHandler.getParserConfiguration());
dataSourceFactory.configure(rootHandler.getParserConfiguration());
templateFactory.configure(rootHandler.getParserConfiguration());
rootHandler.setHelperObject(ReportDefinitionReadHandler.ELEMENT_FACTORY_KEY, elementFactory);
rootHandler.setHelperObject(ReportDefinitionReadHandler.STYLE_FACTORY_KEY, styleKeyFactory);
rootHandler.setHelperObject(ReportDefinitionReadHandler.CLASS_FACTORY_KEY, classFactory);