I tried the resolvePackageSetRegistry() before I added my new function. The  resolvePackageSetRegistry() does not work for me in my test environment. My test environment has two PackageSets. One has @process='*' and it has a PackageMap with @active=1. The other has @process='myroxie' and it has a PackageMap with @active=0. When I read an active package map for 'myroxie', the resolvePackageSetRegistry() returns the second PackageSet and I cannot read active package map.using the PackageSet. Using my new function, I can read active package map (from the first PackageSet) for 'myroxie'.