code: protected <O> CriteriaQuery<O> createCriteriaQuery(Class<O> clazz)
  	{
  		return getCriteriaBuilder().createQuery(clazz);
  	}
docs: Create a JPA2 CriteriaQuery, which should have constraints generated using the methods in {@link #getCriteriaBuilder()}
  
  @param <O>
  the return type of the query
  @param clazz
  the return type of the query
  
  @return