Allowing passing a template object in response class.