Update Java Sender Snippet with latest API
Merge branch 'java_sender_update'