private void convertData(long timestamp, Object[] data, StreamEvent.Type type, StreamEvent newEvent,
                             Exception e) {
        System.arraycopy(data, 0, newEvent.getOutputData(), 0, data.length);
        newEvent.setOutputData(e, data.length);
        newEvent.setType(type);
        newEvent.setTimestamp(timestamp);
    }
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