// Process only portlet type
// The request decoded if not null
PortletPageNavigationalState pageNavigationalState = null;
if (URLParameterConstants.PORTLET_TYPE.equals(type))
{
ControllerRequestFactory factory = new ControllerRequestFactory(context.getPageNavigationalStateSerialization());
RequestDecoder decoder = new RequestDecoder(req);
ControllerRequest request = factory.decode(decoder.getQueryParameters(), decoder.getBody());
ControllerResponse controllerResponse;
try
{
controllerResponse = new PortletController().process(context, request);