OutputStream output = connection.getOutputStream();
Writer writer = new OutputStreamWriter(output);
String type = headers.get("Content-type");
handlerFor(type).marshal(payload, writer, client);
writer.flush();
return responseFor(connection, new IdentityContentProcessor(), details);
} catch (IOException e) {
throw new RestfulieException("Unable to execute " + uri, e);
}
}