@SuppressWarnings("unchecked")
  public <T> T getContextVariable(final String name, final T defaultValue) {
    return (T) contextVariables.getOrDefault(name, defaultValue);
  }
Gets context variable.

@param <T> the type parameter
@param name the name
@param defaultValue the default value
@return the context variable
evm/src/main/java/org/hyperledger/besu/evm/frame/MessageFrame.java