2.0 client updates

Provide a few examples of how to use the new Java APIs.