persons.insert(elvis);
master.commit();
// 6. Checkout a previous version
System.out.println("There are " + persons.find().size() + " persons");
Map<String, Object> elvis3 = persons.findOne(factory.createDocument("name", "Elvis"));
System.out.println("Elvis is now " + elvis3.get("age") + " years old");
VBranch oldMaster = db.checkout(firstCid);
VCollection oldPersons = oldMaster.getCollection("persons");
System.out.println("Previously, there were only " + oldPersons.find().size() + " persons");