public void parse(InputStream in)
throws IOException, QueryResultParseException, TupleQueryResultHandlerException
{
try {
SimpleSAXParser simpleSAXParser = new SimpleSAXParser(XMLReaderFactory.createXMLReader());
simpleSAXParser.setListener(new SPARQLResultsParser());
simpleSAXParser.parse(in);
}
catch (SAXException e) {
Exception wrappedExc = e.getException();
if (wrappedExc instanceof QueryResultParseException) {