protected <T> Response<T> deserialize(InputStream inputStream, Request<T> request) {
String content = null;
try {
content = IOUtils.readStringFromStream(inputStream);
} catch (IOException e) {
throw new SerializationException(e);
}
return deserialize(content, request);
}