Java example re-written using idiomatic Groovy
Merge pull request #1 from rvowles/master

Java example re-written using idiomatic Groovy