PropertySortedEventTableFactory tableFactory;
if (coercionType == null) {
tableFactory = new PropertySortedEventTableFactory(streamNum, eventType, propertyName);
}
else {
tableFactory = new PropertySortedEventTableCoercedFactory(streamNum, eventType, propertyName, coercionType);
}
EventTable[] tables = tableFactory.makeEventTables();
for (EventTable table : tables) {
table.add(pollResult.toArray(new EventBean[pollResult.size()]));
}