TransactionChangesLog newLog = new TransactionChangesLog();
while (logIterator.hasNextLog())
{
List<ItemState> states = new ArrayList<ItemState>(changesLog.getSize());
PlainChangesLog changes = logIterator.nextLog();
for (ItemState change : changes.getAllStates())
{
states.add(new ItemState(copyItemData(change.getData()), change.getState(), change.isEventFire(), change
.getAncestorToSave(), change.isInternallyCreated(), change.isPersisted()));
}