Class<?> pc = c.getSuperclass();
if (TemplateBase.class.isAssignableFrom(pc) && !Modifier.isAbstract(pc.getModifiers())) {
try {
TemplateClass ptc = engine.classes().getByClassName(pc.getName());
if (null != ptc) {
__parent = (TemplateBase) ptc.asTemplate(engine);
} else {
throw new RuntimeException("Cannot find template class for parent class: " + pc);
}
//__parent.__setTemplateClass(__engine().classes.getByClassName(pc.getName()));
} catch (Exception e) {