class ValueResolvingFilter implements ConfigFilter {

    private String format(String template) {
        Matcher m = PATTERN_REFERENCE.matcher(template);
        final StringBuffer sb = new StringBuffer();
        while (m.find()) {
            m.appendReplacement(sb, Matcher.quoteReplacement(root.get(m.group(1)).asString().get()));
        }
        m.appendTail(sb);
        // remove all backslash that encodes ${...}
        m = PATTERN_BACKSLASH.matcher(sb.toString());

        return m.replaceAll("");
    }

    public  ValueResolvingFilter(boolean failOnMissingReference);
    public  ValueResolvingFilter();

}