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