public StreamEvent convert(ComplexEvent complexEvents, Exception e) {
        StreamEvent firstEvent = streamEventFactory.newInstance();
        convertComplexEvent(complexEvents, firstEvent, e);
        StreamEvent currentEvent = firstEvent;
        complexEvents = complexEvents.getNext();
        while (complexEvents != null) {
            StreamEvent nextEvent = streamEventFactory.newInstance();
            convertComplexEvent(complexEvents, nextEvent, e);
            currentEvent.setNext(nextEvent);
            currentEvent = nextEvent;
            complexEvents = complexEvents.getNext();
        }
        return firstEvent;
    }
A StreamEvent holder that can also convert other events into StreamEvents
modules/siddhi-core/src/main/java/io/siddhi/core/event/stream/converter/FaultStreamEventConverter.java