replaced java with groovy