Changed Java to Groovy class