if (length > 0)
{
node = (DefaultMutableTreeNode)path.getPathComponent (length - 1);
ContextNode binding = (ContextNode)node.getUserObject ();
context.unbind (binding.getName ());
DefaultTreeModel model = (DefaultTreeModel)getModel ();
model.removeNodeFromParent (node);
// select the parent node and display its content
DefaultMutableTreeNode parent = (DefaultMutableTreeNode)path.getPathComponent (length - 2);