IncongruityContextFactory incongruityContextFactory = (IncongruityContextFactory) FactoryExtensionFinder
.getFactory(IncongruityContextFactory.class);
this.incongruityContext = incongruityContextFactory.getIncongruityContext();
// Get the bridge request scope cache from the factory.
BridgeRequestScopeCacheFactory bridgeRequestScopeCacheFactory = (BridgeRequestScopeCacheFactory)
FactoryExtensionFinder.getFactory(BridgeRequestScopeCacheFactory.class);
this.bridgeRequestScopeCache = bridgeRequestScopeCacheFactory.getBridgeRequestScopeCache(portletContext);
// Get the default lifecycle instance from the factory.
LifecycleFactory lifecycleFactory = (LifecycleFactory) FactoryFinder.getFactory(
FactoryFinder.LIFECYCLE_FACTORY);
String lifecycleId = this.portletContext.getInitParameter(FacesServlet.LIFECYCLE_ID_ATTR);