Resolve the name of unknown nodes in the tree