docs: private static String extractPassword(String userInfo) {
      if (userInfo == null) {
        return null;
      }
      String password = "";
      int index = userInfo.lastIndexOf(':');
      if (index != -1 && index < userInfo.length() - 1) {
        // Extract password from the URL.
        password = userInfo.substring(index + 1);
      }
      return password;
    }