This is not done right, as you're not taking parent order into account.
The way I did it now is also not done right, but it should do for simple domain hierarchy.
I'll think about it some more on how to make it right.
Reply to this message by going to Community
Start a new discussion in JBoss Microcontainer Development at Community