Added support for responseClass defined by Swagger spec.