{
if (LOG.isDebugEnabled())
{
LOG.debug("Creating new portlet session...");
}
final ContainerServices containerServices = getPortletContainer().getContainerServices();
final PortletEnvironmentService portletEnvironmentService = containerServices.getPortletEnvironmentService();
portletSession = portletEnvironmentService.createPortletSession(getPortletContext(), getPortletWindow(), httpSession);
}
return portletSession;
}