private static List<ConfigVariable> getVars(String value, Pattern pattern) {
        List<ConfigVariable> configVars = new ArrayList<>();
        Matcher matcher = pattern.matcher(value);
        while (matcher.find()) {
            configVars.add(new ConfigVariable(matcher));
        }
        return configVars;
    }
Transforms the given configuration data by using the {@link ConfigProvider} instances to
look up values to replace the variables in the pattern.

@param configs the configuration values to be transformed
@return an instance of {@link ConfigTransformerResult}
clients/src/main/java/org/apache/kafka/common/config/ConfigTransformer.java