142143144145146147148149150151152
{ sn.render( ica, writer ); } finally { ica.popCurrentTemplateName(); } return true; }
201202203204205206207208209210211
/* * in case something blows up... * pull it off for completeness */ ica.popCurrentTemplateName(); } } /**
256257258259260261262263264265266
finally { /* * lets make sure that we always clean up the context */ ica.popCurrentTemplateName(); ica.setCurrentResource( null ); } } else {
286287288289290291292293294295296
nodeTree.render( ica, writer ); } finally { ica.popCurrentTemplateName(); } return true; }
328329330331332333334335336337338
203204205206207208209210211212213
164165166167168169170171172
nodeTree.init(ica, velocityRuntime); nodeTree.render(ica, out); return out.toString(); } finally { ica.popCurrentTemplateName(); } } }
12761277127812791280128112821283128412851286
*/ nodeTree.render(ica, writer); } finally { ica.popCurrentTemplateName(); } return true; }
368369370371372373374375376377378
tree.init(ica, runtime); StringWriter w = new StringWriter(); tree.render(ica, w); return w.toString(); } finally { ica.popCurrentTemplateName(); } } catch (Exception e) { throw new EmailException("Cannot format velocity template: " + template, e); } }