Actually if all you want is the active packagemap you can call resolveActivePackageMap(const char *process, const char *target, bool readonly)... and get the packagemap directly.