code: protected final <T> TypedQuery<T> createQuery(CriteriaQuery<T> criteriaQuery) {
          return this.getEntityManager().createQuery(criteriaQuery);
      }
docs: Common logic for creating and configuring JPA queries
  
  @param criteriaQuery The criteria to create the query from