Changing domain objects from Groovy to Java