if (_dumpMessages) {
_logger.info("Sending a POST request to [" + endpointURL + "]");
ByteArrayOutputStream target = new ByteArrayOutputStream();
try {
requestEntity.writeTo(target);
_logger.info("Request body:[" + target.toString() + "]");
} catch (IOException e) {
_logger.error("Unable to write FileEntity to stream", e);
}
}