Mode mode = null;
org.gatein.pc.api.WindowState windowState = null;
PageNavigationalState pageNavigationalState = null;
Map<String, String[]> publicNS = null;
StateString portletNS = null;
CacheLevel cacheability;
if (scope instanceof PortletResourceRequest.PortletScope)
{
PortletResourceRequest.PortletScope portletScope = (PortletResourceRequest.PortletScope)scope;
WindowNavigationalState navigationalState = portletScope.getWindowNavigationalState();