protected SubProtocolConfiguration createSubProtocolConfiguration(
      final EthProtocolManager ethProtocolManager,
      final Optional<SnapProtocolManager> maybeSnapProtocolManager) {
    final SubProtocolConfiguration subProtocolConfiguration =
        new SubProtocolConfiguration().withSubProtocol(EthProtocol.get(), ethProtocolManager);
    maybeSnapProtocolManager.ifPresent(
        snapProtocolManager ->
            subProtocolConfiguration.withSubProtocol(SnapProtocol.get(), snapProtocolManager));
    return subProtocolConfiguration;
  }
Create sub protocol configuration sub protocol configuration.

@param ethProtocolManager the eth protocol manager
@param maybeSnapProtocolManager the maybe snap protocol manager
@return the sub protocol configuration
app/src/main/java/org/hyperledger/besu/controller/BesuControllerBuilder.java