docs: static Config loadConfig(String userResources) {
      Config config = ConfigFactory.load("agent");
      if (userResources != null && !"".equals(userResources)) {
        for (String userResource : userResources.split("[,\\s]+")) {
          if (userResource.startsWith("file:")) {
            File file = new File(userResource.substring("file:".length()));
            LOGGER.info("loading configuration from file: {}", file);
            Config user = ConfigFactory.parseFile(file);
            config = user.withFallback(config);
          } else {
            LOGGER.info("loading configuration from resource: {}", userResource);
            Config user = ConfigFactory.parseResourcesAnySyntax(userResource);
            config = user.withFallback(config);
          }
        }
      }
      return config.resolve().getConfig("netflix.spectator.agent");
    }