Collection<SagaType> sagaTypes;
if (message instanceof Timeout) {
// timeout is special. Has only one specific saga state and
// saga id is already known
Timeout timeout = (Timeout) message;
SagaType sagaType = SagaType.sagaFromTimeout(timeout.getSagaId());
sagaTypes = new ArrayList<>(1);
sagaTypes.add(sagaType);
} else {
sagaTypes = prepareSagaTypeList(message);
}