{
onHermesRemoved(hermes);
}
HermesTreeNode cfNode = new HermesTreeNode(hermes.getId(), hermes, this);
HermesTreeNodeComparator comparator = new HermesTreeNodeComparator();
hermesMap.put(hermes.getId(), cfNode);
int i = 0;
for (; i < jmsRootNode.getChildCount(); i++)
{
HermesTreeNode node = (HermesTreeNode) jmsRootNode.getChildAt(i);
if (comparator.compare(cfNode, node) < 0)
{
break;
}
}
jmsRootNode.insert(cfNode, i);