}
public Collection<Violation> parseReport(final InputStream inputStream) {
final Collection<Violation> violations = new ArrayList<Violation>();
try {
final StaxParser parser = new StaxParser(
new OCLintXMLStreamHandler(violations, project, context));
parser.parse(inputStream);
LoggerFactory.getLogger(getClass()).error(
"Reporting {} violations.", violations.size());
} catch (final XMLStreamException e) {
LoggerFactory.getLogger(getClass()).error(
"Error while parsing XML stream.", e);