def resource_specific(responses, resource)
      logger.verbose("Looking through #{responses.size} matching cache " \
                     "entries for resource #{resource}.")
      responses.select { |response| response.resource == resource }
        .map(&:token_response).first
    end
def resource_specific(responses, resource)
      logger.verbose("Looking through #{responses.size} matching cache " \
                     "entries for resource #{resource}.")
      responses.select { |response| response.resource == resource }
        .map(&:token_response).first
    end
Searches a list of CachedTokenResponses for one that matches the resource.

 @param Array[CachedTokenResponse]
 @return SuccessResponse|nil