rename 'refId' to more explicit 'resourceId'