public JsonRpcConfiguration jsonRpcConfiguration(
      final List<String> hostsAllowlist, final String defaultHostAddress, final Long timoutSec) {

    final JsonRpcConfiguration jsonRpcConfiguration = this.jsonRpcConfiguration();

    jsonRpcConfiguration.setHost(
        Strings.isNullOrEmpty(rpcHttpHost) ? defaultHostAddress : rpcHttpHost);
    jsonRpcConfiguration.setHostsAllowlist(hostsAllowlist);
    jsonRpcConfiguration.setHttpTimeoutSec(timoutSec);
    return jsonRpcConfiguration;
  }
Creates a JsonRpcConfiguration based on the provided options.

@param hostsAllowlist List of hosts allowed
@param defaultHostAddress Default host address
@param timoutSec timeout in seconds
@return A JsonRpcConfiguration instance
app/src/main/java/org/hyperledger/besu/cli/options/JsonRpcHttpOptions.java