tobj.setValue(BODY, new StreamInput(istream, sEncoding).getBinary());
}
else
{
istream = UTF8BOMIgnoreInputStream.wrap(istream, sEncoding);
tobj.setValue(BODY, new ReaderInput(new InputStreamReader(istream, sEncoding)).getString());
}
}
tobj.setValue(CHANNEL, m_channel.getName());
tobj.setValue(HEADERS, getHeaders(m_client.getResponseHeaders()));