// Initialize the bridge request scope.
initBridgeRequestScope(portletRequest, portletResponse, portletPhase, portletContainer, incongruityContext);
// Get the bridge context.
BridgeContextFactory bridgeContextFactory = (BridgeContextFactory) FactoryExtensionFinder.getFactory(
BridgeContextFactory.class);
bridgeContext = bridgeContextFactory.getBridgeContext(bridgeConfig, bridgeRequestScope, portletConfig,
portletContext, portletRequest, portletResponse, portletPhase, portletContainer, incongruityContext);
// Save the BridgeContext as a request attribute for legacy versions of ICEfaces.
portletRequest.setAttribute(BridgeExt.BRIDGE_CONTEXT_ATTRIBUTE, bridgeContext);