@Override
    public Stream<T> stream() {
        try {
            Query query = createQuery();
            return queryHandler.stream(query, projection);
        } finally {
            reset();
        }
    }
Transforms results using FactoryExpression if ResultTransformer can't be used

@param query query
@return single result
querydsl-jpa/src/main/java/com/querydsl/jpa/impl/AbstractJPAQuery.java