OP-421: Groovy to Java