link.addParameter("x:type", parameters.getEventType());
addEventContext(link, "x:ec", parameters.getEventContext());
addEventContext(link, "x:pac", parameters.getPageActivationContext());
link.addParameter("x:page", parameters.getActivePageName());
link.addParameter("x:id", parameters.getNestedComponentId());
if (!parameters.getActivePageName().equals(parameters.getContainingPageName()))
link.addParameter("x:container", parameters.getContainingPageName());