for(int j =0; j < RolesTreeModel.getChildCount(RolesTopNode);j++){
String currentRoleName = RolesTreeModel.getChild(RolesTopNode, j).toString();
Role currentRole = new Role(currentRoleName);
allRoles.add(currentRole);
RolesTreeNode currentNode = (RolesTreeNode) RolesTreeModel.getChild(RolesTopNode, j);
// find all children of currentRole and assign them to the Role
for(int i =0; i < RolesTreeModel.getChildCount(currentNode);i++){
String currentComponentName = (String) RolesTreeModel.getChild(currentNode, i).toString();