final ValidateRuleVisitor valVisitor = new ValidateRuleVisitor();
final NormalizeRuleVisitor normVisitor = new NormalizeRuleVisitor();
final SubstituteFunctionCallsVisitor subVisitor = new SubstituteFunctionCallsVisitor();
final ResolveListsRuleVisitor listVisitor = new ResolveListsRuleVisitor();
final RuleDependencyGraphVisitor dependencyVisitor = new RuleDependencyGraphVisitor();
final RuleFilteringVisitor filteringVisitor = new RuleFilteringVisitor();
this.rifDocument = (Document) this.rifDocument.accept(subVisitor, null);
this.rifDocument = (Document) this.rifDocument.accept(listVisitor, null);
this.rifDocument = (Document) this.rifDocument.accept(normVisitor, null);
this.rifDocument.accept(valVisitor, null);