// Save the Bridge.PortletPhase as a request attribute so that it can be picked up by the
// BridgeRequestAttributeListener.
portletRequest.setAttribute(Bridge.PORTLET_LIFECYCLE_PHASE, portletPhase);
// Initialize the portlet container implementation.
PortletContainerFactory portletContainerFactory = (PortletContainerFactory) FactoryExtensionFinder.getFactory(
PortletContainerFactory.class);
PortletContainer portletContainer = portletContainerFactory.getPortletContainer(portletRequest, portletResponse,
portletContext, bridgeConfig);
// Initialize the bridge request scope.
initBridgeRequestScope(portletRequest, portletResponse, portletPhase, portletContainer, incongruityContext);