docs: public String getSiteFromAddress(String url, String site)
      {
          int iStart = url.indexOf("//") + 2;
          iStart = url.indexOf('/', iStart);
          if (iStart == -1)
              iStart = url.length();
          if ((site != null) && (site.length() > 0))
              if (!url.equalsIgnoreCase(site))
                  return site; // Return this site if different from URL
          return url.substring(0, iStart);
      }