code: @Override
      public void makeEmlFile(String path) {
          assertArgumentNotNull("path", path);
          ByteArrayOutputStream ous = null;
          try {
              ous = new ByteArrayOutputStream();
              message.writeTo(ous);
              final String eml = ous.toString();
              new FileTextIO().encodeAsUTF8().write(path, eml);
          } catch (IOException | MessagingException e) {
              logger.info("Failed to make EML file to the path: " + path + " subject=" + subject, e);
          } finally {
              if (ous != null) {
                  try {
                      ous.close();
                  } catch (IOException ignored) {}
              }
          }
      }
docs: =============