config.setDynaviewId(getFacesDynaViewId());
/*
* Do the built-in post-processing manually to ensure ordering
*/
ConfigurationPostProcessor parenting = new ParentingPostProcessor();
config = parenting.processConfiguration(servletContext, config);
ServiceLoader<ConfigurationPostProcessor> postProcessors = ServiceLoader.load(ConfigurationPostProcessor.class);
for (ConfigurationPostProcessor p : postProcessors)
{
config = p.processConfiguration(servletContext, config);
}
ConfigurationPostProcessor validating = new ValidatingPostProcessor();
config = validating.processConfiguration(servletContext, config);
log.trace("Setting config into ServletContext");
servletContext.setAttribute(PrettyContext.CONFIG_KEY, config);
}
catch (Exception e)