Groovy to java