move from Java to Groovy