public void convertEvent(Event event, StreamEvent newEvent) {
        convertData(event.getTimestamp(), event.getData(), event.isExpired() ? StreamEvent.Type.EXPIRED : StreamEvent
                        .Type.CURRENT,
                newEvent);
    }
The converter class that converts the events into StreamEvent
modules/siddhi-core/src/main/java/io/siddhi/core/event/stream/converter/SelectiveStreamEventConverter.java