code: public PaginatedResult execute(final Query query) {
          final long count = getCount(query);
          decorate(query);
          return new PaginatedResult()
                  .objects(query.execute())
                  .total(count);
      }
docs: Wrapper around {@link Query#execute()} that adds transparent support for
  pagination and ordering of results via {@link #decorate(Query)}.
  @param query the JDO Query object to execute
  @return a PaginatedResult object
  @since 1.0.0