register(targetClass, tmpl);
return tmpl;
}
// find match TemplateBuilder
TemplateBuilder builder = chain.select(targetClass, true);
if (builder != null) {
if (forceLoad) {
tmpl = builder.loadTemplate(targetClass);
if (tmpl != null) {
register(targetClass, tmpl);
return tmpl;
}
}
tmpl = builder.buildTemplate(targetClass);
if (tmpl != null) {
register(targetClass, tmpl);
return tmpl;
}
}