CMF-36: added the ability to generate root element for diagram configuration