{
try
{
InvocationTarget target = invocation.getTarget();
PageLinkTarget pageLinkTarget = (PageLinkTarget) target;
EventContext activationContext
= new URLEventContext(contextValueEncoder, invocation.getContext());
PageRenderRequestParameters parameters = new PageRenderRequestParameters(pageLinkTarget.getPageName(),
activationContext);
pageRenderRequestHandler.handle(parameters);
return markupWriterFactory.getLatestMarkupWriter().getDocument();