MapFactory tmpFactory = null;
Map<String, Revision> pending;
try {
if (map.size() > IN_MEMORY_SIZE_LIMIT) {
tmpFactory = MapFactory.createFactory();
pending = tmpFactory.create(PathComparator.INSTANCE);
} else {
pending = Maps.newTreeMap(PathComparator.INSTANCE);
}
pending.putAll(map);
} finally {