Function Node.findParent
Finds the first parent of the current node whose name matches mask as in String (i.e. case-sensitive, but "*" matches zero or more characters and "?" matches any single character except ".").
Note: It does not match against the full path, just against individual node names.