try {
nodeTree = ri.parse(reader, logTag);
}
catch (ParseException pex) {
throw new ParseErrorException(pex);
}
catch (TemplateInitException pex) {
throw new ParseErrorException(pex);
}
/*
* now we want to init and render
*/
if (nodeTree != null) {
InternalContextAdapterImpl ica =
new InternalContextAdapterImpl(context);
ica.pushCurrentTemplateName(logTag);
try {
try {
nodeTree.init(ica, ri);
}
catch (TemplateInitException pex) {
throw new ParseErrorException(pex);
}
/**
* pass through application level runtime exceptions
*/
catch (RuntimeException e) {