@Override
  public Optional<MutableWorldState> getWorldState(final WorldStateQueryParams queryParams) {
    if (worldStateConfig.isStateful()) {
      return getFullWorldState(queryParams);
    } else {
      throw new RuntimeException("stateless mode is not yet available");
    }
  }
Gets a mutable world state based on the provided query parameters.

<p>This method checks if the world state is configured to be stateful. If it is, it retrieves
the full world state using the provided query parameters. If the world state is not configured
to be full, the stateless one will be returned.

<p>The method follows these steps: 1. Check if the world state is configured to be stateful. 2.
If true, call {@link #getFullWorldState(WorldStateQueryParams)} with the query parameters. 3.
If false, throw a RuntimeException indicating that stateless mode is not yet available.

@param queryParams the query parameters
@return the mutable world state, if available
@throws RuntimeException if the world state is not configured to be stateful
ethereum/core/src/main/java/org/hyperledger/besu/ethereum/trie/pathbased/common/provider/PathBasedWorldStateProvider.java