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;
} else if (SESSION_PORTLET_SCOPE.equals(property)) {
context.setPropertyResolved(true);