@SuppressWarnings("unchecked")
  @Override
  public <T> T retrieve(String key) throws HiveException {
    T value = null;
    try {
      value = (T) registry.get(key);
      if ( value != null) {
        LOG.info("Found " + key + " in cache with value: " + value);
      }
    } catch (Exception e) {
      throw new HiveException(e);
    }
    return value;
  }
ObjectCache. Tez implementation based on the tez object registry.
ql/src/java/org/apache/hadoop/hive/ql/exec/tez/ObjectCache.java