docs: @Override
      public AttachmentResource getMainAttachment() throws RepositoryBackendException, RepositoryResourceException {
          Collection<AttachmentResource> attachments = getAttachments();
  
          for (AttachmentResource at : attachments) {
              if (isMainAttachment(at)) {
                  return at;
              }
          }
  
          return null;
      }