if (LOG.isDebugEnabled()) {
LOG.debug("Trying to render template " + template + ", repeating through parents until we succeed");
}
UIBean tag = templateContext.getTag();
ValueStack stack = templateContext.getStack();
stack.push(tag);
PageContext pageContext = (PageContext) stack.getContext().get(ServletActionContext.PAGE_CONTEXT);
List<Template> templates = template.getPossibleTemplates(this);
Exception exception = null;
boolean success = false;
for (Template t : templates) {