code: public OdsFileWriterAdapter createWriterAdapter(final File file) throws IOException {
          final NamedOdsDocument document = this.createNamedDocument();
          final ZipUTF8WriterBuilder zipUTF8Writer = ZipUTF8WriterImpl.builder().noWriterBuffer();
          final OdsFileWriterAdapter writerAdapter = OdsFileWriterAdapter
                  .create(OdsFileDirectWriter.builder(this.logger, document)
                          .openResult(this.openFile(file)).zipBuilder(zipUTF8Writer).build());
          document.addObserver(writerAdapter);
          document.prepareFlush();
          return writerAdapter;
      }
docs: Create an adapter for a writer.
  
  @param file the file
  @return the adapter
  @throws IOException if an I/O error occurs