Factored out common code to get a resource descriptor from an item specification