}
}
//
PortalURLContext urlContext = new PortalURLContext(context, siteKey);
NodeURL url = urlFactory.newURL(NodeURL.TYPE, urlContext);
url.setResource(new NavigationResource(siteKey.getType(), siteKey.getName(), uri));
url.setMimeType(MimeType.PLAIN);
HttpServletRequest request = context.getRequest();
Enumeration paraNames = request.getParameterNames();
while (paraNames.hasMoreElements()) {
String parameter = paraNames.nextElement().toString();
url.setQueryParameterValues(parameter, request.getParameterValues(parameter));
}
String s = url.toString();
HttpServletResponse resp = context.getResponse();
resp.sendRedirect(resp.encodeRedirectURL(s));
return true;
}