Thank you. This is very helpful.
I didn't explain it clear, but I was using the vSphere API to go up the chain. But now, instead of using the localized name as my condition flag, I will compare the mor to the ServiceContent.rootFolder. When they match, I will know I have reached the end of the path.
Thanks again!