code: public void write(File file) throws IOException {
          checkNotNull(file, "Output file cannot be null");
  
          FileUtils.writeByteArrayToFile(file, serializedObject);
      }
docs: Writes the serialized object to file.
  
  @param file the file to write to (will be overwritten)
  @throws IOException when the file could not be written