Hashtable<Long, AtomicInteger> keyCounts)
{
for (long i = 0; i < numEvents; ++i)
{
try {
eventsBuf.appendEvent(new DbusEventKey(keyBase + i), (short) 0, (short)1, (short)0, srcId,
new byte[16], "value1".getBytes("UTF-8"), false);
} catch (UnsupportedEncodingException e) {
//ignore
}
keyCounts.put(keyBase + i, new AtomicInteger(0));