connection.getStatements(subj, pred, obj, inferred, contexts)
) {
@Override
protected QueryEvaluationException convert(Exception e) {
if (e instanceof ClosedByInterruptException) {
return new QueryInterruptedException(e);
}
else if (e instanceof IOException) {
return new QueryEvaluationException(e);
}
else if (e instanceof SailException) {
if(e.getCause() instanceof ResultInterruptedException) {
return new QueryInterruptedException(e);
} else {
return new QueryEvaluationException(e);
}
}
else if (e instanceof RuntimeException) {