Update CoolQuery to work with Java 6