docs: public PreparedAttachment prepareAttachment(Attachment att, long length, long encodedLength)
              throws AttachmentException {
          PreparedAttachment pa = AttachmentManager.prepareAttachment(attachmentsDir,
                  attachmentStreamFactory, att, length, encodedLength);
          return pa;
      }