docs: public void saveWithTrainingConfig(File outputFile) throws IOException {
          if(this.trainingConfig == null) {
              throw new IllegalStateException("No training configuration found!");
          }
  
          try(BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(new FileOutputStream(outputFile))) {
              saveWithTrainingConfig(this.trainingConfig, bufferedOutputStream);
              bufferedOutputStream.flush();
          }
  
      }