code: @Programmatic
      public List<Paperclip> findByAttachedTo(final Object attachedTo) {
          if(attachedTo == null) {
              return null;
          }
          final Bookmark bookmark = bookmarkService.bookmarkFor(attachedTo);
          if(bookmark == null) {
              return null;
          }
          final String attachedToStr = bookmark.toString();
          return repositoryService.allMatches(
                  new QueryDefault<>(Paperclip.class,
                          "findByAttachedTo",
                          "attachedToStr", attachedToStr));
      }
docs: region > findByAttachedTo (programmatic)