public static void validate(Map<String, String> props) {
        Map<String, ConfigValue> validatedConfig = new LinkedHashMap<>();
        validate(props, validatedConfig);
        validatedConfig.values().stream()
                .filter(configValue -> !configValue.errorMessages().isEmpty())
                .findFirst()
                .ifPresent(configValue -> {
                    throw new ConfigException(configValue.name(), configValue.value(), configValue.errorMessages().get(0));
                });
    }
Throw an exception if the passed-in properties do not constitute a valid sink.
@param props sink configuration properties
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/SinkConnectorConfig.java