// check if it matches a batch id recently submitted
boolean isLocal = false;
if (value != null) {
isLocal = value.equals(sessionInfo.getLastBatchId());
}
bundles.add(new EventBundleImpl(
buildEventList(bundleElement, sessionInfo),
isLocal));
}
events = (EventBundle[]) bundles.toArray(new EventBundle[bundles.size()]);
}