Load TemplatePathStackResolver only when needed