}
}
try {
request.setContent(new StringInputStream(stringWriter.getBuffer().toString()));
request.addHeader("Content-Length", Integer.toString(stringWriter.getBuffer().toString().getBytes().length));
request.addHeader("Content-Type", "application/xml");
} catch (UnsupportedEncodingException e) {
throw new AmazonClientException("Unable to marshall request to XML", e);
}