context.setPropertyResolved(true);
if (mAppScopeSessionMap == null) {
Object request = extCtx.getRequest();
Object portletLifecycleAttr = extCtx.getRequestMap().get(Bridge.PORTLET_LIFECYCLE_PHASE);
if (null == portletLifecycleAttr) {
mAppScopeSessionMap = new ServletApplicationScopeSessionMap((HttpServletRequest) request);
} else if (portletLifecycleAttr instanceof Bridge.PortletPhase) {
mAppScopeSessionMap = new PortletApplicationScopeSessionMap((PortletRequest) request);
}
}
return mAppScopeSessionMap;