added example from http://www.couchbase.com/develop/java/current