code: public void cacheThreadLocalRawStore() {
      Long threadId = this.getId();
      RawStore threadLocalRawStore = HiveMetaStore.HMSHandler.getRawStore();
      if (threadLocalRawStore != null && !threadRawStoreMap.containsKey(threadId)) {
        LOG.debug("Adding RawStore: " + threadLocalRawStore + ", for the thread: " +
            this.getName() + " to threadRawStoreMap for future cleanup.");
        threadRawStoreMap.put(threadId, threadLocalRawStore);
      }
    }
docs: Cache the ThreadLocal RawStore object. Called from the corresponding thread.