@Override
        public ICacheableMetaStoreClient call() throws MetaException {
          // This is called from HCat, so always allow embedded metastore (as was the default).
          return
              (ICacheableMetaStoreClient) RetryingMetaStoreClient.getProxy(cacheKey.getHiveConf(),
                  new Class<?>[]{HiveConf.class, Integer.class, Boolean.class},
                  new Object[]{cacheKey.getHiveConf(), timeout, true},
                  CacheableHiveMetaStoreClient.class.getName());
        }
Return from cache if exists else create/cache and return
@param cacheKey
@return
@throws IOException
@throws MetaException
@throws LoginException
hcatalog/core/src/main/java/org/apache/hive/hcatalog/common/HiveClientCache.java