Without this, the caller often has to get the pointer to the resource before adding it to the resource scope.