if (component instanceof DestinationConfigTreeNode)
{
final DestinationConfigTreeNode node = (DestinationConfigTreeNode) component;
final HermesTreeNode hermesNode = (HermesTreeNode) node.getHermesTreeNode();
Hermes.ui.getThreadPool().invokeLater(new EditDestinationPropertiesTask(hermesNode.getHermes(), node.getConfig(), new Runnable()
{
public void run()
{
int index = hermesNode.getIndex(node) ;
hermesNode.remove(node) ;