@classmethod
def _get_with_cache(cls, url):
    """ Get resource from either cache or rest
        :returns JSONObject
        """
    try:
        return cls._cache[url]
    except KeyError:
        api = cls(None, None)
        return cls._cache.setdefault(url, api.method(url))
