code: public boolean isValidStore(String name) {
          readLock.lock();
          try {
              if(this.storeNames.contains(name)) {
                  return true;
              }
              return false;
          } finally {
              readLock.unlock();
          }
      }
docs: Utility function to validate if the given store name exists in the store
  name list managed by MetadataStore. This is used by the Admin service for
  validation before serving a get-metadata request.
  
  @param name Name of the store to validate
  @return True if the store name exists in the 'storeNames' list. False
  otherwise.