code: protected List<E> list(Query<E> query) throws HibernateException {
          return requireNonNull(query).list();
      }
docs: Get the results of a query.
  
  @param query the query to run
  @return the list of matched query results
  @see Query#list()