Monky patch to add responseClass support.