@Override
    public Q clone() {
        return clone(entityManager, getTemplates());
    }
Clone the state of this query to a new instance

@return cloned query
querydsl-jpa/src/main/java/com/querydsl/jpa/impl/AbstractJPAQuery.java