throw TemplateMetaModel.TEMPLATE_NOT_RESOLVED.failure(path);
} else {
TemplateProvider<M> provider = (TemplateProvider<M>)owner.resolveTemplateProvider(path.getExt());
M templateAST;
try {
templateAST = provider.parse(new ParseContext(), resource.getObject().getCharSequence());
}
catch (TemplateException e1) {
throw TemplateMetaModel.TEMPLATE_SYNTAX_ERROR.failure(path).initCause(e1);
}
TemplateModel<M> templateModel = new TemplateModel<M>(