get the resource ID for a given managed object