docs: public static NetworkConfig fromYamlStream(InputStream configStream) throws InvalidArgumentException, NetworkConfigurationException {
  
          logger.trace("NetworkConfig.fromYamlStream...");
  
          // Sanity check
          if (configStream == null) {
              throw new InvalidArgumentException("configStream must be specified");
          }
  
          Yaml yaml = new Yaml();
  
          @SuppressWarnings ("unchecked")
          Map<String, Object> map = yaml.load(configStream);
  
          JsonObjectBuilder builder = Json.createObjectBuilder(map);
  
          JsonObject jsonConfig = builder.build();
          return fromJsonObject(jsonConfig);
      }