code: private static AttachmentList generateAttachmentList(final List<Attachment> listAttachments) {
      AttachmentList list = new AttachmentList();
  
      for (Attachment attachment : listAttachments) {
        list.add(new org.helm.chemtoolkit.Attachment(attachment.getAlternateId(), attachment.getLabel(), attachment.getCapGroupName(), attachment.getCapGroupSMILES()));
      }
      return list;
    }
docs: method to generate the AttachmentList given a list of attachments
  
  @param listAttachments input list of Attachments
  @return AttachmentList generated AttachmentList