windowState = WindowState.NORMAL;
}
//
PortletInvocationContext portletInvocationContext = context.createPortletInvocationContext(portletResourceRequest.getWindowId(), pageNavigationalState);
ResourceInvocation resourceInvocation = new ResourceInvocation(portletInvocationContext);
//
resourceInvocation.setResourceId(portletResourceRequest.getResourceId());
resourceInvocation.setCacheLevel(cacheability);
resourceInvocation.setMode(mode);
resourceInvocation.setWindowState(windowState);
resourceInvocation.setNavigationalState(portletNS);
resourceInvocation.setPublicNavigationalState(publicNS);
resourceInvocation.setResourceState(portletResourceRequest.getResourceState());
resourceInvocation.setForm(portletResourceRequest.getBodyParameters() != null ? ParameterMap.clone(portletResourceRequest.getBodyParameters()) : null);
//
try
{
return context.invoke(resourceInvocation);