@Override
    public List<T> fetch() {
        try {
            Object rv = execute(createQuery(false), false);
            @SuppressWarnings("unchecked") // Compile time checking of user code mandates it to be T
            List<T> result = rv instanceof List ? (List<T>) rv : Collections.singletonList((T) rv);
            return result;
        } finally {
            reset();
        }
    }
Close the query and related resources
querydsl-jdo/src/main/java/com/querydsl/jdo/AbstractJDOQuery.java