add a way to generate java transformation to closures