code: public static <T> IQueryResult<T> packageResult(List<T> results, CompletionStatus status, Map<String, Object> metadata) {
          return new QueryResult<T>(results, status, metadata);
      }
docs: Convenience method for packaging query results.
  
  @param <T> Class of query result.
  @param results Results to package.
  @param status The completion status.
  @param metadata Additional metadata.
  @return Packaged results and metadata.