httpMethod.setRequestEntity(
new StringRequestEntity(builder.asString(null), "text/xml", Constants.DEFAULT_ENCODING));
performRestRequest(httpMethod, 201);
DistributionHandler handler = (new CloudFrontXmlResponsesSaxParser())
.parseDistributionResponse(httpMethod.getResponseBodyAsStream());
return handler.getDistribution();
} catch (CloudFrontServiceException e) {
throw e;
} catch (Exception e) {
throw new CloudFrontServiceException(e);
}