public MetaStateEvent clone() {
        MetaStateEvent metaStateEvent = new MetaStateEvent(this.getStreamEventCount());
        for (MetaStreamEvent metaStreamEvent : this.getMetaStreamEvents()) {
            metaStateEvent.addEvent(metaStreamEvent.clone());
        }
        if (this.getOutputStreamDefinition() != null) {
            metaStateEvent.setOutputDefinition(this.getOutputStreamDefinition().clone());
        }
        return metaStateEvent;
    }
Class to hold mapping between StreamEvents and respective StateEvent.
This consist of array of MetaStreamEvents which represent each
StreamEvent within StateEvent
modules/siddhi-core/src/main/java/io/siddhi/core/event/state/MetaStateEvent.java