Replaced isLeaf() with getPartNumber() when checking for node kit parts.