generation support of sub-diagrams
generation many levels of sub-diagrams