update JavaLayerDef
fix indent
add JavaSourceGenerator (but not working)