docs: public String getRedirectUrl(HttpServletRequest req, String uri) {
          String hostName = req.getServerName();
          Integer httpsPort = new com.ibm.ws.security.common.web.WebUtils().getRedirectPortFromRequest(req);
          String entryPoint = uri;
          if (httpsPort == null && req.isSecure()) {
              // TODO: need to specify SSL_PORT_IS_NULL message
              // Tr.error(tc, "SSL_PORT_IS_NULL");
              int port = req.getServerPort();
              // return whatever in the req
              String httpSchema = ((javax.servlet.ServletRequest) req).getScheme();
              return httpSchema + "://" + hostName + (port > 0 && port != 443 ? ":" + port : "") + entryPoint;
          } else {
              return "https://" + hostName + (httpsPort == null ? "" : ":" + httpsPort) + entryPoint;
          }
      }