docs: private static String substituteURL(Config config, String pathString) {
      Matcher m = URL_PATTERN.matcher(pathString);
      if (m.matches()) {
        return String.format("%s://%s", m.group(1), substitute(config, m.group(2)));
      }
      return pathString;
    }