Converting from groovy to java

Pretty straightforward conversions so far...

PR deliberately to the update/brooklyn-060-SNAPSHOT branch, as that is what @andreaturli is testing against currently. We'll get these things into the master branch later...