}
private void traverse(JMeterTreeNode node, List nodePath, int level) {
if (node != null && nodePath.size() > level) {
for (int i = 0; i < node.getChildCount(); i++) {
JMeterTreeNode cur = (JMeterTreeNode) node.getChildAt(i);
if (cur.getName().equals(nodePath.get(level).toString())) {
if (nodePath.size() == (level + 1)) {
selectedNode = cur;
}
traverse(cur, nodePath, level + 1);
}