DBCollection commitCollection = mongoConnection.getCommitCollection();
DBObject index = new BasicDBObject();
index.put(CommitMongo.KEY_REVISION_ID, Long.valueOf(1));
DBObject options = new BasicDBObject();
options.put("unique", Boolean.TRUE);
commitCollection.ensureIndex(index, options);
CommitMongo commit = new CommitMongo();
commit.setAffectedPaths(Arrays.asList(new String[] { "/" }));
commit.setBaseRevId(0L);
commit.setDiff("+/ : {}");
commit.setMessage("This is an autogenerated initial commit");