Engine engine = Jetspeed.getEngine();
contextComponent = (RequestContextComponent)Jetspeed.getComponentManager().getComponent(RequestContextComponent.class);
context = (RequestContext) data.getRequest().getAttribute(JetspeedFusionPortlet.FUSION_NAV_STATE);
if (context == null)
{
context = contextComponent.create(request, response, config);
data.getRequest().setAttribute(JetspeedFusionPortlet.FUSION_NAV_STATE, context);
}
context.setAttribute(PortalReservedParameters.PORTLET_ENTITY, entityId);
context.setAttribute(PortalReservedParameters.PIPELINE, FusionResources.NAVS_PIPELINE);