TriggerFiredBundle bndle = new TriggerFiredBundle(retrieveJob(trigger.getJobKey()), trigger, cal, false,
new Date(), trigger.getPreviousFireTime(), prevFireTime,
trigger.getNextFireTime());
String fireInstanceId = trigger.getFireInstanceId();
FiredTrigger prev = triggerFacade.getFiredTrigger(fireInstanceId);
triggerFacade.putFiredTrigger(fireInstanceId, new FiredTrigger(terracottaClientId, tw.getKey(), trigger.getPreviousFireTime().getTime()));
getLog().trace("Tracking " + trigger + " has fired on " + fireInstanceId);
if (prev != null) {
// this shouldn't happen
throw new AssertionError("duplicate fireInstanceId detected (" + fireInstanceId + ") for " + trigger
+ ", previous is " + prev);