this.servletContext = servletContext;
if (error instanceof TemplateException
&& ((TemplateException) error).isParseError()) {
TemplateException te = (TemplateException) error;
if (te.getTemplateName().charAt(0) == '/') {
sourceName = te.getTemplateName();
} else {
sourceName = '/' + te.getTemplateName();
}
lineNumber = te.getLineNumber();
columnNumber = te.getColumnNumber();
InputStream is =
servletContext.getResourceAsStream(sourceName);
sourceReader = new LineNumberReader(new InputStreamReader(is));