Making TaskRequestWrapper Generic and Adding a Decoder for decoding response