As we discussed today, it might be a good idea to do a PoC for the QueryResultProducer extending `javax.persistence.Expression` and let SQM implement the JPA Criteria interfaces directly.