}
else if (varName.equals(HTTP_SESSION_SCOPE)) {
// Determines whether or not methods annotated with the @PreDestroy annotation are preferably
// invoked over the @BridgePreDestroy annotation.
BridgeContext bridgeContext = BridgeContext.getCurrentInstance();
ContextMapFactory contextMapFactory = (ContextMapFactory) FactoryExtensionFinder.getFactory(
ContextMapFactory.class);
value = contextMapFactory.getSessionScopeMap(bridgeContext, PortletSession.APPLICATION_SCOPE);
}
else if (varName.equals(MUTABLE_PORTLET_PREFERENCES_VALUES)) {
FacesContext facesContext = FacesContext.getCurrentInstance();
PortletRequest portletRequest = getPortletRequest(facesContext);
if (portletRequest != null) {
value = new MutablePreferenceMap(portletRequest.getPreferences());
}
}
else if (varName.equals(PORTLET_CONFIG)) {
BridgeContext bridgeContext = BridgeContext.getCurrentInstance();
if (bridgeContext != null) {
value = bridgeContext.getPortletConfig();
}
}
else if (varName.equals(PORTLET_SESSION)) {
FacesContext facesContext = FacesContext.getCurrentInstance();
value = facesContext.getExternalContext().getSession(true);