KDTreeNode treeNode = (KDTreeNode) treeMain.getLastSelectedPathComponent();
if (treeNode != null && treeNode.getParent() != null)
{
TreePath oldPath = treeMain.getSelectionPath();
TreePath parentPath = treeMain.getSelectionPath().getParentPath();
KDTreeNode parentNode = (KDTreeNode) treeNode.getParent();
treeBuilder.refreshTreeNode(treeMain , parentNode ,this.getDefaultFilterForTree());
treeMain.setSelectionPath(TreePathUtil.getNewTreePath(treeMain ,treeMain.getModel() , oldPath));
}