private void throwIfClosed() {
    if (storage.isClosed()) {
      LOG.error("Attempting to use a closed Storage instance.");
      throw new StorageException("Storage has been closed");
    }
  }
Instantiates a new Segmented key value storage adapter for a single segment.

@param segmentIdentifier the segmentIdentifier to wrap as a KeyValueStorage
@param storage the storage
services/kvstore/src/main/java/org/hyperledger/besu/services/kvstore/SegmentedKeyValueStorageAdapter.java