if ((beanManagerFactory != null) && (bridgeRequestScopeManagerFactory != null)) {
// Cleanup instances of BridgeRequestScope that are associated with the expiring session.
HttpSession httpSession = httpSessionEvent.getSession();
BridgeRequestScopeManager bridgeRequestScopeManager =
bridgeRequestScopeManagerFactory.getBridgeRequestScopeManager();
bridgeRequestScopeManager.removeBridgeRequestScopesBySession(httpSession);
// For each session attribute:
String appConfigAttrName = ApplicationConfig.class.getName();
ServletContext servletContext = httpSession.getServletContext();
ApplicationConfig applicationConfig = (ApplicationConfig) servletContext.getAttribute(