Updates for Java Snapshot

There is a BREAKING CHANGE in the Java API.

Since we are relying on Java SNAPSHOT releases, that means that as soon as the Java Client API is released as a snapshot, this commit has to be in place in order to work.

When we are ready to consider this update, I will certify a nightly build and cut a working Java API release.

This is not a PR that can be tested independently of the Java API change, and is not reversible.