for (Map.Entry<String, IdMap> e : commit.getObjects().entrySet()) {
DBObject co = new BasicDBObject();
IdMapIterator it = e.getValue().iterator();
while (it.hasNext()) {
it.advance();
co.put(String.valueOf(it.key()), it.value());
}
objs.put(e.getKey(), co);
}
o.put(OBJECTS, objs);
_commits.insert(o);