Map<String, Object> infoMap = createEventInfoMapForSequencerChange(sequencedChange);
events.add(new JcrEvent(bundle, NODE_SEQUENCED, stringFor(sequencedChange.getOutputNodePath()),
nodeIdentifier(sequencedChange.getOutputNodeKey()), infoMap, primaryType, mixinTypes));
} else if (nodeChange instanceof NodeSequencingFailure && eventListenedFor(NODE_SEQUENCING_FAILURE)) {
// create event for the sequencing failure
NodeSequencingFailure sequencingFailure = (NodeSequencingFailure)nodeChange;
Map<String, Object> infoMap = createEventInfoMapForSequencerChange(sequencingFailure);
infoMap.put(SEQUENCING_FAILURE_CAUSE, sequencingFailure.getCause());
events.add(new JcrEvent(bundle, NODE_SEQUENCING_FAILURE, stringFor(sequencingFailure.getPath()), nodeId, infoMap,
primaryType, mixinTypes));
}
}