* EKBConcurrentException is thrown.
*/
private void checkForContextHeadRevision(String contextId, UUID expectedHeadRevision)
throws EKBConcurrentException {
if (!Objects.equal(edbService.getLastRevisionNumberOfContext(contextId), expectedHeadRevision)) {
throw new EKBConcurrentException("The current revision of the context does not match the "
+ "expected one.");
}
}