public void generateUpdatedEntries()
    {

        _modifiedEntries.clear();
        HashSet<String> newEntries = new HashSet<String>();

        for (int i = 0; i < 10; i++)
        {

            OrderEntry orderEntry = null;
            int action = _random.nextInt(100);

            if (_orderEntries.size() == 0 || action >= _deleteFactor + _updateFactor)
            {
                // Action Add
                if (_orderEntries.size() >= _maxEntries)
                    continue;

                orderEntry = getNewOrder();
                _orderEntries.add(orderEntry);

            }
            else if (action < _deleteFactor)
            {
                // Action Delete
                int index = _random.nextInt(_orderEntries.size());
                orderEntry = (OrderEntry)_orderEntries.get(index);

                if (newEntries.contains(orderEntry.orderId))
                    continue;

                orderEntry.action = OMMMapEntry.Action.DELETE;
                _orderEntries.remove(orderEntry);

            }
            else
            {
                // Action Update
                int index = _random.nextInt(_orderEntries.size());
                OrderEntry updateEntry = (OrderEntry)_orderEntries.get(index);

                if (newEntries.contains(updateEntry.orderId))
                    continue;

                updateOrder(updateEntry);
                orderEntry = (OrderEntry)updateEntry.clone();
                orderEntry.action = OMMMapEntry.Action.UPDATE;
            }

            newEntries.add(orderEntry.orderId);
            _modifiedEntries.add(orderEntry);
        }
    }