final OutputStream responseEntityStream = getResponseEntityStream();
writeResponseBody(entity, responseEntityChannel,
responseEntityStream);
if (connectorService != null) {
connectorService.afterSend(entity);
}
if (responseEntityStream != null) {
try {
responseEntityStream.flush();