public Object visit(SubstitutionStatement node) {
            // Check if substitution allowed in this template.
            if (!mUnit.getParseTree().hasSubstitutionParam()) {
                error("substitution.undeclared", node);
            }

            return null;
        }