code: public static void writeModel(@NonNull Model model, @NonNull String path, boolean saveUpdater) throws IOException {
          try (BufferedOutputStream stream = new BufferedOutputStream(new FileOutputStream(path))) {
              writeModel(model, stream, saveUpdater);
          }
      }
docs: Write a model to a file path
  @param model the model to write
  @param path the path to write to
  @param saveUpdater whether to save the updater
  or not
  @throws IOException