try {
result = (T) DataSiftClient.MAPPER.readValue(s, instance.getClass());
} catch (IOException e) {
result.failed(e);
if (config.isAllowedToRaiseExceptions()) {
throw new JsonParsingException("Unable to decode JSON from DataSift response", e, response);
}
}
}
result.setResponse(new com.datasift.client.Response(s, response));
if (config.isAllowedToRaiseExceptions() && response.getStatus().code() == 401) {