code: public void finish() throws IOException {
      writer.append("--" + boundary + "--").append(LINE_BREAK);
      writer.flush();
      writer.close();
      outputStream.flush();
      outputStream.close();
    }
docs: Adds the final boundary to the multipart message and closes streams.