Store getStore(PartitionId id, boolean skipStateCheck) {
    BlobStore storeToReturn;
    rwLock.readLock().lock();
    try {
      BlobStore store = stores.get(id);
      storeToReturn = (running && store != null && (store.isStarted() || skipStateCheck)) ? store : null;
    } finally {
      rwLock.readLock().unlock();
    }
    return storeToReturn;
  }
@param id the {@link PartitionId} to find the store for.
@param skipStateCheck whether to skip checking state of store.
@return the associated {@link Store}, or {@code null} if the partition is not on this disk, or the store is not
        started.
ambry-store/src/main/java/com/github/ambry/store/DiskManager.java