private static BrowserTreeNode findChildNode(BrowserTreeNode attributesNode, Class<? extends AttributeInfo> attributeInfoClass) {
int childCount = attributesNode.getChildCount();
for (int i = 0; i < childCount; i++) {
BrowserTreeNode childNode = (BrowserTreeNode)attributesNode.getChildAt(i);
AttributeInfo attributeInfo = (AttributeInfo)childNode.getElement();
if (attributeInfo.getClass() == attributeInfoClass) {
return childNode;
}
}
return null;
}