Resolve Resource_ references from idMap when possible.