docs: private static NetworkConfig fromFile(File configFile, boolean isJson) throws InvalidArgumentException, IOException, NetworkConfigurationException {
  
          // Sanity check
          if (configFile == null) {
              throw new InvalidArgumentException("configFile must be specified");
          }
  
          if (logger.isTraceEnabled()) {
              logger.trace(format("NetworkConfig.fromFile: %s  isJson = %b", configFile.getAbsolutePath(), isJson));
          }
  
          NetworkConfig config;
  
          // Json file
          try (InputStream stream = new FileInputStream(configFile)) {
              config = isJson ? fromJsonStream(stream) : fromYamlStream(stream);
          }
  
          return config;
      }