} catch (IOException e1) {
throw new ReportDownloadResponseException(response.getHttpStatus(), e1);
}
DetailedReportDownloadResponseException exception =
new DetailedReportDownloadResponseException(response.getHttpStatus(), responseText);
XmlFieldExtractor extractor = new XmlFieldExtractor();
Map<String, String> fields = extractor.extract(
new ByteArrayInputStream(responseText.getBytes()),
new String[] {"fieldPath", "trigger", "type"});
exception.setFieldPath(fields.get("fieldPath"));
exception.setTrigger(fields.get("trigger"));
exception.setType(fields.get("type"));