if (PortletContainerDetector.isLiferayPortletRequest(portletRequest)) {
portletContainer = new PortletContainerLiferayImpl(portletRequest, portletResponse, portletContext,
bridgeConfig);
}
else if (PortletContainerDetector.isPlutoPortletRequest(portletRequest)) {
portletContainer = new PortletContainerPlutoImpl(portletRequest, bridgeConfig);
}
else {
portletContainer = new PortletContainerImpl(portletRequest, bridgeConfig);
}
}