docs: public void writeWallet(Wallet wallet, OutputStream output) throws IOException {
          Protos.Wallet walletProto = walletToProto(wallet);
          final CodedOutputStream codedOutput = CodedOutputStream.newInstance(output, this.walletWriteBufferSize);
          walletProto.writeTo(codedOutput);
          codedOutput.flush();
      }