@SuppressWarnings("unchecked")
    private <T> T detach(T results) {
        if (results instanceof Collection) {
            return (T) persistenceManager.detachCopyAll((Collection<?>) results);
        } else {
            return persistenceManager.detachCopy(results);
        }
    }
Close the query and related resources
querydsl-jdo/src/main/java/com/querydsl/jdo/AbstractJDOQuery.java