docs: public void saveWithTrainingConfig(TrainingConfig trainingConfig,OutputStream outputStream) throws  IOException {
          ObjectMapper objectMapper = ObjectMapperHolder.getJsonMapper();
          String configJson = objectMapper.writeValueAsString(trainingConfig);
          ZipOutputStream zipfile = new ZipOutputStream(new CloseShieldOutputStream(outputStream));
          ZipEntry config = new ZipEntry(TRAINING_CONFIG_JSON_ZIP_ENTRY_NAME);
          zipfile.putNextEntry(config);
          zipfile.write(configJson.getBytes());
  
          ZipEntry sameDiff = new ZipEntry(SAMEDIFF_FILE_ENTRY_NAME);
          zipfile.putNextEntry(sameDiff);
  
          val fb = asFlatBuffers();
          val offset = fb.position();
  
          val array = fb.array();
  
          try (BufferedOutputStream zipFileOutputStream = new BufferedOutputStream(zipfile);
               val dos = new DataOutputStream(zipFileOutputStream)) {
              dos.write(array, offset, array.length - offset);
          }
      }