(OptionalContainerServices) springContext.getBean("OptionalContainerServices");
// Create portlet container.
LOG.debug(" [3] Creating portlet container...");
PortletContainerFactory factory =
PortletContainerFactory.getInstance();
PortletContainer container = factory.createContainer(
driverConfig.getContainerName(), required, optional
);
// Initialize portlet container.
LOG.debug(" [4] Initializing portlet container...");