{
WebApp webApp = WebApp.getLocal();
JspFactory jspFactory = JspFactory.getDefaultFactory();
JspApplicationContext appContext
= jspFactory.getJspApplicationContext(webApp);
_defaultNavigationHandler = new NavigationHandlerImpl();
_bundleManager = BundleManager.create();
_jsfExpressionFactory = appContext.getExpressionFactory();
ELResolver []customResolvers = new ELResolver[0];
_elResolver = new FacesContextELResolver(customResolvers,
_bundleResolver);
setViewHandler(new JspViewHandler());
SessionStateManager stateManager = new SessionStateManager();
JsfPropertyGroup jsfPropertyGroup = webApp.getJsf();
if (jsfPropertyGroup != null)
stateManager.setStateSerializationMethod(
jsfPropertyGroup.getStateSerializationMethod());
setStateManager(stateManager);
appContext.addELResolver(new FacesJspELResolver(this));
addComponent(UIColumn.COMPONENT_TYPE,
"javax.faces.component.UIColumn");
addComponent(UICommand.COMPONENT_TYPE,