Added usage example in Java.