code: public String getJavaScriptForRedirect(String reqUrlCookieName, String redirectUrl, Map<String, String> cookieProperties) throws Exception {
          String javascript = createJavaScriptForRedirectCookie(reqUrlCookieName, cookieProperties) + "\n";
          javascript += createJavaScriptStringToPerformRedirect(redirectUrl) + "\n";
          return wrapInJavascriptHtmlTags(javascript);
      }
docs: Creates a JavaScript HTML block that:
  <ol>
  <li>Creates a cookie with the specified name whose value is the browser's current location
  <li>Redirects the browser to the specified URL
  </ol>