format generated java code