Added a responseHandler factory