code: @Programmatic
      public List<Paperclip> findByDocument(final DocumentAbstract document) {
          return repositoryService.allMatches(
                  new QueryDefault<>(Paperclip.class,
                          "findByDocument",
                          "document", document));
      }
docs: region > findByDocument (programmatic)