changes.add(new ItemState(newData, ItemState.UPDATED, true, null, false, true));
}
else
{
ItemState state = ItemState.createUpdatedState(newData);
state.eraseEventFire();
changes.add(state);
}
}
// delete state first
dataManager.getChangesLog().add(deleteState);