Add generator for module XML file
Add listener to generate XML when classes are created
Prevent module generation when code generation is disabled
Hook up module generation in the container