docs: public static String getProtocol(String url)
    {
      if(url == null) {
        return null;
      }
      int protocolSeparatorIndex = url.indexOf("://");
      if(protocolSeparatorIndex == -1) {
        return null;
      }
      return url.substring(0, protocolSeparatorIndex).toLowerCase();
    }