Made ResourceTemplateLoader a singleton