Fix findNodeType behavior and rename method.