Hi Guys,
Thanks very much for your replies, they really did help me.
I got it to work.
But for future reference, this will only work if the "Result Mapping" of the Task is set, because what is returned from
Content content = responseHandler.getContent();
is whatever is in the "Result Mapping".
At least this is what I gather from my experiments! But feel free to correct me if I'm wrong.