code: public String getJavaScriptForRedirect(String reqUrlCookieName, String redirectUrl) throws Exception {
          return getJavaScriptForRedirect(reqUrlCookieName, redirectUrl, null);
      }
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>