docs: @SuppressWarnings("unchecked")
    public <T extends DbEntity> T get(Class<T> type, String id) {
      Class<?> cacheKey = cacheKeyMapping.getEntityCacheKey(type);
      CachedDbEntity cachedDbEntity = getCachedEntity(cacheKey, id);
      if(cachedDbEntity != null) {
        DbEntity dbEntity = cachedDbEntity.getEntity();
        try {
          return (T) dbEntity;
        } catch(ClassCastException e) {
          throw LOG.entityCacheLookupException(type, id, dbEntity.getClass(), e);
        }
      } else {
        return null;
      }
    }