*/
protected Response put(UrlBuilder url, String contentType, Map<String, String> headers,
Output writer) {
// make the call
//Log.d("URL", url.toString());
Response resp = getHttpInvoker().invokePUT(url, contentType, headers, writer, session);
// check response code
if ((resp.getResponseCode() < 200) || (resp.getResponseCode() > 299)) {
throw convertStatusCode(resp.getResponseCode(), resp.getResponseMessage(), resp.getErrorContent(), null);
}
return resp;
}