// Get the new tree model.
DefaultTreeModel treeModel = roleTree.getTreeModel();
// Add the old listeners back...
treeModel.getTreeModelListeners().addAll(listeners);
// Get the index of the new node.
TreeNode parentNode = SecurityApplicationUtils.findTreeNode(roleTree, getParentRole().getFullPath());
TreeNode childNode = SecurityApplicationUtils.findTreeNode(roleTree, addedRole.getPreferences().absolutePath());
int [] childIndices = {treeModel.getIndexOfChild(parentNode, childNode)};
// Send the node inserted event.
treeModel.nodesWereInserted(parentNode, childIndices);
}
catch (SecurityException se)