// Tell all interested listeners that the config builder for the profile has now been created.
fireEvent(ContentDeliveryConfigBuilderLifecycleEvent.CONFIG_BUILDER_CREATED);
return domConfig;
} else {
SAXContentDeliveryConfig saxConfig = new SAXContentDeliveryConfig();
logger.debug("Using the SAX Stream Filter.");
saxConfig.setVisitBefores(visitorConfig.getSaxVisitBefores());
saxConfig.setVisitAfters(visitorConfig.getSaxVisitAfters());
saxConfig.setVisitCleanables(visitorConfig.getVisitCleanables());
saxConfig.setApplicationContext(applicationContext);
saxConfig.setSmooksResourceConfigurations(resourceConfigTable);
saxConfig.setDtd(dtd);
saxConfig.getConfigBuilderEvents().addAll(configBuilderEvents);
saxConfig.optimizeConfig();
saxConfig.assertSelectorsNotAccessingText();
if(sortVisitors) {
saxConfig.sort();
}
saxConfig.addToExecutionLifecycleSets();
saxConfig.initializeXMLReaderPool();
saxConfig.addIndexCounters();
// Tell all interested listeners that the config builder for the profile has now been created.
fireEvent(ContentDeliveryConfigBuilderLifecycleEvent.CONFIG_BUILDER_CREATED);
return saxConfig;