newDiagramTypeName = "TableHierarchyDiagram";
if(diagramType == ORGANIGRAM)
newDiagramTypeName = "OrganizationDiagram";
if(m_GroupType == Controller.ORGANIGROUP){
String oldDiagramTypeName = getDiagram().getDiagramTypeName();
DiagramTree diagramTree = ((OrganizationChart)getDiagram()).getDiagramTree();
getDiagram().renameShapes(oldDiagramTypeName, newDiagramTypeName);
setDiagramType(diagramType);
instantiateDiagram();
((OrganizationChart)getDiagram()).initDiagramTree(diagramTree);