}
}
@SuppressWarnings("unchecked")
public String getSelectedNodeKey() {
ITreeState treeState = getTree().getTreeState();
Collection<DefaultMutableTreeNode> selectedNodes = treeState.getSelectedNodes();
String selectedKey = null;
if (selectedNodes.size() > 0) {
DefaultMutableTreeNode selectedNode = selectedNodes.iterator().next();
ResourceKeyTreePanel.NodeBean userObject = (NodeBean) selectedNode.getUserObject();
selectedKey = userObject.getResourceKey();