return commandExecutor.execute(command);
}
@Override
public String waitForCommit(String oldHeadRevisionId, long timeout) throws Exception {
WaitForCommitCommand command = new WaitForCommitCommand(this,
oldHeadRevisionId, timeout);
long revisionId = commandExecutor.execute(command);
return MongoUtil.fromMongoRepresentation(revisionId);
}