final StringWriter aggregationErrorWriter = new StringWriter();
try {
Model model = ModelFactory.createDefaultModel();
// model.read(url.toString());
JenaReader jenaReader = new JenaReader();
jenaReader.setErrorHandler(new RDFErrorHandler() {
public void error(Exception e) {
aggregationErrorWriter.write(e.getMessage());
}