throw new RuntimeException(e);
}
}
private void parse(MGraph target, InputSource in, UriRef baseURI) throws IOException {
Parser parser = new Parser(new ClerezzaStatementSink(target));
if (baseURI != null) {
parser.setBase(baseURI.getUnicodeString());
} else {
parser.setBase("urn:x-relative:root");
}
initParser(parser);
try {
XMLReader xreader = getReader();
xreader.setContentHandler(parser);