long timestamp = timestampL != null ? timestampL : 0;
long parentCID = (Long)o.get(PARENT_CID);
long rootCID = (Long)o.get(ROOT_CID);
DBObject objs = (DBObject)o.get(OBJECTS);
Map<String, IdMap> objects = new HashMap<String, IdMap>();
for (String k : objs.keySet()) {
if (!k.equals(MongoDBConstants.ID)) {
objects.put(k, resolveCollectionObjects((DBObject)objs.get(k)));
}
}
return new Commit(cid, timestamp, parentCID, rootCID, objects);