if (repository.isReadOnly()) {
throw new RepositoryReadOnlyException();
}
if (repository.isIllegal(subject, predicate, object, contexts)) {
throw new IllegalStatementException();
}
add(new AddStatementOperation(subject, predicate, object, contexts));
}