def get(self, key, default=None):
        try:
            return self[key]
        except KeyError:
            return default
Detect correct entry type from resource and instantiate.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/jinja2-2.6/jinja2/utils.py/LRUCache.get--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/logging/client.py/Client._entry_from_resource