Examples for using the Java SDK