[#2216] consider existing resource hierarchy before resolving one in getPhyPath