//
if (URLParameterConstants.PORTLET_TYPE.equals(type))
{
ControllerRequestFactory factory = new ControllerRequestFactory(context.getPageNavigationalStateSerialization());
ControllerRequest request = factory.decode(req);
//
ControllerResponse response = controller.process(context, request);
//