if (o instanceof StatefulMap) {
StatefulMap map = (StatefulMap) o;
Set<?> es = map.states().entrySet();
for (Object entry : es) {
Object mapKey = ((Entry) entry).getKey();
State state = (State) ((Entry) entry).getValue();
switch (state) {
case NEW:
case DIRTY:
m.put(col.getFirst(), new Text(toBytes(mapKey)), new Value(toBytes(map.get(mapKey))));