Update Java Sender Snippet with latest API
Merge branch 'java_sender_snippet' into 1.0.x