SAXSource source = new SAXSource(filter, new InputSource(stream));
return parseInputStream(source);
} catch (ParserConfigurationException e) {
RedmineApiErrorException exc = new RedmineApiErrorException(Messages.ERRMSG_INPUTSTREAM_PARSING_FAILED_CONFIG_ERROR_X, e.getMessage(), e);
log.error(e, exc.getMessage());
throw exc;
} catch (SAXException e) {
RedmineApiErrorException exc = new RedmineApiErrorException(Messages.ERRMSG_INPUTSTREAM_PARSING_FAILED_X, e.getMessage(), e);
log.error(e, exc.getMessage());
throw exc;
}
}