Thanks for the nice feedback. I am aware of the formatting problems, probably due to my using eclipse and a deeply ingrained habit of formatting each and every bit of code. I will first work on resolving those issues, maybe by adopting the eclipse settings someone recently checked in for JBoss AS 7? I don't know if those are acceptable for JBoss Modules too.
Once that's out of the way I will have a look into how to implement what you proposed. It makes a lot of sense but I'm currently not sure if the approach I've taken will support such a scenario. Pointers are welcome.
Cheers,
Olaf