code: @Override
      public <T> TypedQuery<T> createQuery(CriteriaQuery<T> paramCriteriaQuery)
      {
          checkClosed();
  
          return this.createQuery(CriteriaQueryTranslator.translate(paramCriteriaQuery),
                  paramCriteriaQuery.getResultType());
      }
docs: /*
  (non-Javadoc)
  
  @see
  javax.persistence.EntityManager#createQuery(javax.persistence.criteria
  .CriteriaQuery)