private static byte[] convertInputStreamToByteArray(InputStream content) {
try {
return content != null ? IOUtils.toByteArray(content) : null;
} catch (IOException e) {
throw new ClientDriverResponseCreationException("unable to create client driver response", e);
}
}