code: protected Map<String, String> readCredentialsURL(URL url) {
          Map<String, String> credentials = new HashMap<>();
          Pattern entry = Pattern.compile("^([^:]+):(.+)");
          try (Scanner scanner = new Scanner(url.openStream(), StandardCharsets.UTF_8.name())) {
              while (scanner.hasNextLine()) {
                  String line = scanner.nextLine().trim();
                  if (!line.isEmpty() && !line.startsWith("#")) {
                      Matcher m = entry.matcher(line);
                      if (m.matches()) {
                          String username = m.group(1);
                          String password = m.group(2);
                          if (Strings.isNullOrEmpty(username)) {
                              log.warn("Skipping line because the username is blank!");
                              continue;
                          }
                          if (Strings.isNullOrEmpty(password)) {
                              log.warn("Skipping '{}' account because the password is blank!", username);
                              continue;
                          }
  
                          credentials.put(username.trim(), password.trim());
                      }
                  }
              }
          } catch (Exception e) {
              log.error("Failed to read {}", url, e);
          }
          return credentials;
      }
docs: Reads the credentials url.