refactoring, CustomTemplateCallback#getContext() should work through injection