url.append(createQueryString(this.params, this.templateParams, (url.indexOf("?") == -1)));
String urlStr = url.toString();
ParameterHandler parameterHandler = RequestContextUtils.getParameterHandler(request);
urlStr = parameterHandler.processURL(request, urlStr, response.getCharacterEncoding());
if (this.type != UrlType.ABSOLUTE) {
// Add the session identifier if needed
// (Do not embed the session identifier in a remote link!)
urlStr = response.encodeURL(urlStr);