Couchbase Java Client

Calling flush() on CouchbaseClient throws a ClassCastException