{
PortletContainerObject portletContainerObject = new PortletContainerImpl(containerInfo);
PortletContainerContextImpl portletContainerContext = new PortletContainerContextImpl();
//
PortletContainerLifeCycle portletContainerLifeCycle = portletApplicationLifeCycle.addPortletContainer(portletContainerContext, portletContainerObject);
// Needed for the managed callbacks
portletContainerContext.managedPortletContainer = portletContainerLifeCycle;
// Now create deps