public override bool render(InternalContextAdapter context, TextWriter writer, INode node) { /* * what is our arg? */ INode n = node.jjtGetChild(0); if (n.Type == ParserTreeConstants.JJTSTRINGLITERAL) { try { String element = (String)node.jjtGetChild(0).Value(context); TemplateHandler th = (TemplateHandler)rsvc.getApplicationAttribute("NVelocity.Dvsl.TemplateHandler"); th.RegisterMatch(element, (SimpleNode)node.jjtGetChild(node.jjtGetNumChildren() - 1)); } catch (Exception ee) { } } return(true); }