private void checkConfigurationValidity() {
    if (result == null || result.isEmpty()) {
      throw new ParameterException(
          commandLine, "Unable to read from empty TOML configuration file.");
    }

    if (!isUnknownOptionsChecked && !commandLine.isUnmatchedArgumentsAllowed()) {
      checkUnknownOptions(result);
      isUnknownOptionsChecked = true;
    }
  }
Creates a new TomlConfigurationDefaultProvider from an input stream.

@param commandLine the command line
@param inputStream the input stream
@return a new TomlConfigurationDefaultProvider
app/src/main/java/org/hyperledger/besu/cli/util/TomlConfigurationDefaultProvider.java