//Application is configured as JSP
if(OpenWebBeansConfiguration.getInstance().isJspApplication())
{
logger.debug("Application is configured as JSP. Adding EL Resolver.");
JspApplicationContext applicationCtx = JspFactory.getDefaultFactory().getJspApplicationContext((ServletContext)(startupObject));
applicationCtx.addELResolver(resolver);
logger.debug("Application is configured as JSP. Adding EL Listener.");
//Adding listener
applicationCtx.addELContextListener(elContextListener);
}
// Add BeanManager to the 'javax.enterprise.inject.spi.BeanManager' servlet context attribute
ServletContext servletContext = (ServletContext)(startupObject);
servletContext.setAttribute(BeanManager.class.getName(), getBeanManager());