public XElement Generate(Profile profile, bool extensionsOnly)
        {
            var gen   = new HierarchicalTableGenerator(_pkp);
            var model = TableModel.CreateNormalTable();

            genProfile(model.Rows, profile, extensionsOnly);

            return(gen.generate(model));
        }
        public XElement generateStructureTable(Profile.ProfileStructureComponent structure, bool diff, Profile profile)
        {
            HierarchicalTableGenerator gen = new HierarchicalTableGenerator(_pkp);
            var model = TableModel.CreateNormalTable();

            // List<Profile.ElementComponent> list = diff ? structure.getDifferential().getElement() : structure.getSnapshot().getElement();   DSTU2
            var list = structure.Element;
            var nav  = new ElementNavigator(structure);

            nav.MoveToFirstChild();

            genElement(gen, model.Rows, nav, profile, true);
            return(gen.generate(model));
        }