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