How can I find the service associated with a Resource?