Scala client example using Java SDK