docs: public static void write(Message message, File toFile) {
      OutputStream out = null;
      try {
        out = new BufferedOutputStream(new FileOutputStream(toFile, false));
        message.writeTo(out);
      } catch (Exception e) {
        throw ContextException.of("Unable to write message", e).addContext("file", toFile);
      } finally {
        IOUtils.closeQuietly(out);
      }
    }