if (null == windowAccess)
{
throw new PortletException("Failed to find the Window Access on portlet initialization");
}
PortalConfiguration portalConfiguration = (PortalConfiguration) getPortletContext().getAttribute(CommonPortletServices.CPS_PORTAL_CONFIGURATION);
if (null == portalConfiguration)
{
throw new PortletException("Failed to find the Portal Configuration on portlet initialization");
}
storeViewPageInSession = portalConfiguration.getBoolean("layout.page.storeViewPageInSession", true);
templateLocator = (TemplateLocator) getPortletContext().getAttribute("TemplateLocator");
decorationLocator = (TemplateLocator) getPortletContext().getAttribute("DecorationLocator");
}