jspAppContext.addELContextListener(Reflections.<ELContextListener> newInstance(
"org.jboss.weld.el.WeldELContextListener", getClass().getClassLoader()));
// Hack into JBoss Web/Catalina to replace the ExpressionFactory
JspApplicationContextImpl wrappedJspApplicationContextImpl = new WeldJspApplicationContextImpl(
JspApplicationContextImpl.getInstance(sre.getServletContext()), beanManager
.wrapExpressionFactory(jspAppContext.getExpressionFactory()));
sre.getServletContext().setAttribute(JspApplicationContextImpl.class.getName(),
wrappedJspApplicationContextImpl);
}