store.store(correlationId, aggregation);
if (timeout != null) {
if (log.isDebugEnabled()) {
log.debug("Scheduling timeout at " + timeout + " for aggregate " + correlationId);
}
getTimerManager().schedule(new TimerListener() {
public void timerExpired(Timer timer) {
AbstractAggregator.this.onTimeout(correlationId);
}
}, timeout);
}