Ah you are limiting yourself by design in doing this, people might want different kinds of response handlers based on different configurations, ideally we should have a factory which return us the right instance / object.