for(int j =0; j < GroupsTreeModel.getChildCount(GroupsTopNode);j++){
String currentGroupName = GroupsTreeModel.getChild(GroupsTopNode, j).toString();
Group currentGroup = new Group(currentGroupName);
allGroups.add(currentGroup);
GroupsTreeNode currentNode = (GroupsTreeNode) GroupsTreeModel.getChild(GroupsTopNode, j);
// find all children of currentGroup and assign them to the Role
for(int i =0; i < GroupsTreeModel.getChildCount(currentNode);i++){
String currentComponentName = (String) GroupsTreeModel.getChild(currentNode, i).toString();