private static WebSocketClientOptions buildWebSocketClientOptions(
      final EthStatsConnectOptions ethStatsConnectOptions) {
    final WebSocketClientOptions options = new WebSocketClientOptions();
    if (ethStatsConnectOptions.getCaCert() != null) {
      options.setTrustOptions(
          new PemTrustOptions().addCertPath(ethStatsConnectOptions.getCaCert().toString()));
    }
    return options;
  }
Instantiates a new EthStatsService.

@param ethStatsConnectOptions the ethstats options
@param blockchainQueries the blockchain queries
@param protocolManager the protocol manager
@param transactionPool the transaction pool
@param miningCoordinator the mining coordinator
@param syncState the SyncState
@param vertx the vertx instance
@param clientVersion the client version
@param genesisConfigOptions the genesis config options
@param p2PNetwork the p2p network
ethereum/ethstats/src/main/java/org/hyperledger/besu/ethstats/EthStatsService.java