class RuleFilterToJava {

    public RuleCode convert(String name, String dsl, ProcessFilter processFilter) {
        checkNotNull(name);
        checkNotNull(dsl);
        RuleFilterVisitorImpl ruleFilterVisitor = new RuleFilterVisitorImpl(functionRegistry);
        ruleFilterVisitor.visit(parser(dsl).parse());
        try {
            return templating(name, dsl, ruleFilterVisitor, processFilter);
        } catch (Exception e) {
            throw new TemplatingException(e);
        }
    }

}