Implement the ResourceFetcher.retrieve