* @see org.eclipse.ui.internal.registry.CategorizedPageRegistryReader#findNode(java.lang.Object, java.lang.String)
*/
Object findNode(Object parent, String currentToken) {
IPreferenceNode[] subNodes = ((WorkbenchPreferenceNode) parent).getSubNodes();
for (int i = 0; i < subNodes.length; i++) {
WorkbenchPreferenceNode node = (WorkbenchPreferenceNode) subNodes[i];
if (node.getId().equals(currentToken)) {
return node;
}
}
return null;
}