'Get the cached resources cached under the given resource name.
Allow an API extension to get previously stored objects within
the same API request.
Note that the object data will be slightly stale.
:returns: a dict of id_attribute to the resource from the cached
resources, an empty map if an empty collection was cached,
or None if nothing has been cached yet under this name'

def cached_resource(self, name=None):

    if (not name):
        name = self.path
    if (name not in self._resource_cache):
        return None
    return self._resource_cache[name]
