docs: public static Map<String, PreparedAttachment> prepareAttachments(String attachmentsDir,
                                                                   AttachmentStreamFactory attachmentStreamFactory,
                                                                   Map<String, Attachment> attachments)
          throws AttachmentException {
          Map<String, PreparedAttachment> preparedAttachments = new HashMap<String, PreparedAttachment>();
          for (Map.Entry<String, Attachment> a : attachments.entrySet()) {
              PreparedAttachment pa = AttachmentManager.prepareAttachment(attachmentsDir, attachmentStreamFactory, a.getValue());
              preparedAttachments.put(a.getKey(), pa);
          }
          return preparedAttachments;
      }