public static ChannelBuilder createChannelBuilder(AbstractConfig config, Time time, LogContext logContext) {
        SecurityProtocol securityProtocol = SecurityProtocol.forName(config.getString(CommonClientConfigs.SECURITY_PROTOCOL_CONFIG));
        String clientSaslMechanism = config.getString(SaslConfigs.SASL_MECHANISM);
        return ChannelBuilders.clientChannelBuilder(securityProtocol, JaasContext.Type.CLIENT, config, null,
                clientSaslMechanism, time, true, logContext);
    }
Create a new channel builder from the provided configuration.

@param config client configs
@param time the time implementation
@param logContext the logging context

@return configured ChannelBuilder based on the configs.
clients/src/main/java/org/apache/kafka/clients/ClientUtils.java