DbusEventGenerator eventGen = new DbusEventGenerator(startScn+1);
long newScn = eventGen.generateEvents(numEvents, _maxWindowSize, maxEventSize, payloadSize, true, events);
DbusEventInternalWritable p = null;
for (DbusEvent e : events)
{
if (p != null && (p.sequence() != e.sequence()))
{
//control event for prev sequence;
p.setSrcId((short)-1);
_stats.registerDataEvent(p);
}