code: public PaginatedResult execute(final Query query, final Map parameters) {
          final long count = getCount(query, parameters);
          decorate(query);
          return new PaginatedResult()
                  .objects(query.executeWithMap(parameters))
                  .total(count);
      }
docs: Wrapper around {@link Query#executeWithMap(Map)} 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>Map</code> containing all of the parameters.
  @return a PaginatedResult object
  @since 1.0.0