assert model != null;
assert r != null;
assert p != null;
synchronized (model) {
ModelAddRemoveMemoryImpl toBeDeleted = new ModelAddRemoveMemoryImpl();
toBeDeleted.addAll(model.findStatements(r, p, Variable.ANY));
ClosableIterator<Statement> it = toBeDeleted.iterator();
model.removeAll(it);
it.close();
return toBeDeleted.size() > 0;
}
}