docs: public static String getURL(String sourceURI) {
          String retval = sourceURI;
          int qPos = sourceURI.indexOf("?");
          if (qPos != -1) {
              retval = retval.substring(0, qPos);
          }
  
          return retval;
      }