code: public static void writeModel(@NonNull Model model, @NonNull OutputStream stream, boolean saveUpdater)
              throws IOException {
          writeModel(model,stream,saveUpdater,null);
      }
docs: Write a model to an output stream
  @param model the model to save
  @param stream the output stream to write to
  @param saveUpdater whether to save the updater for the model or not
  @throws IOException