// 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");
Map<String, Object> oldElvis = oldPersons.findOne(factory.createDocument("name", "Elvis"));
System.out.println("Last year, Elvis was " + oldElvis.get("age") + " years old");