ControllerResponse processResponse(
PortletControllerContext context,
PortletRequest portletRequest,
PortletInvocationResponse response) throws PortletInvokerException
{
StateControllerContext stateContext = context.getStateControllerContext();
// The page navigational state we will operate on during the request
// Either we have nothing in the request so we create a new one
// Or we have one but we copy it as we should not modify the input state provided
PortletPageNavigationalState pageNavigationalState = portletRequest.getPageNavigationalState();
if (pageNavigationalState == null)
{
pageNavigationalState = stateContext.createPortletPageNavigationalState(true);
}
else
{
pageNavigationalState = stateContext.clonePortletPageNavigationalState(pageNavigationalState, true);
}
//
ResponseProperties requestProperties = new ResponseProperties();