HttpURLConnection connection = initializeConnection(absoluteUri, contentType, httpMethod);
byte[] buffer = content.getBytes("UTF-8");
connection.getOutputStream().write(buffer);
// if a entity is created (via POST request) the response body contains the new created entity
HttpStatusCodes statusCode = HttpStatusCodes.fromStatusCode(connection.getResponseCode());
if(statusCode == HttpStatusCodes.CREATED) {
// get the content as InputStream and de-serialize it into an ODataEntry object
InputStream responseContent = connection.getInputStream();
logRawContent(httpMethod + " response:\n ", responseContent, "\n");
} else if(statusCode == HttpStatusCodes.NO_CONTENT) {