This should go into the generator. What you need it generate a list of all CONTAINER
and MODULE
nodes. I assume that you've written the generator in Xtend:
val list = Lists.newArrayList( model.containers )
list.addAll( model.modules )
iterate over the sorted list:
for( part : list.sortBy(e|e.name) ) {
part.generateContainer()
}
and then one generateContainer() method per type.