set response as instance in the dependency injector