void visit(TemplateElement element) throws IOException, TemplateException {
  pushElement(element);
  try {
    TemplateElement[] templateElementsToVisit=element.accept(this);
    if (templateElementsToVisit != null) {
      for (      TemplateElement el : templateElementsToVisit) {
        if (el == null) {
          break;
        }
        visit(el);
      }
    }
  }
 catch (  TemplateException te) {
    handleTemplateException(te);
  }
 finally {
    popElement();
  }
}

void visit ( TemplateElement element ) throws IOException , TemplateException { pushElement ( element ) ; try { TemplateElement [ ] templateElementsToVisit = element . accept ( this ) ; if ( templateElementsToVisit != null ) { for ( TemplateElement el : templateElementsToVisit ) { if ( el == null ) { break ; } visit ( el ) ; } } } catch ( TemplateException te ) { handleTemplateException ( te ) ; } finally { popElement ( ) ; } }
" visit " the template element .
