@Override
public Long execute() throws Exception {
int retries = 0;
boolean success = false;
do {
mongoSync = new ReadAndIncHeadRevisionAction(nodeStore).execute();
revisionId = mongoSync.getNextRevisionId() - 1;
if (initialBaseRevisionId != null) {
baseRevisionId = initialBaseRevisionId;
} else {
baseRevisionId = mongoSync.getHeadRevisionId();