refactored TemplateBuilderChain and AbstractTemplateBuilder classes
return ReflectionTemplateBuilder when an exception occurs