public static StateEventPopulator constructEventPopulator(MetaComplexEvent metaComplexEvent) {
        if (metaComplexEvent instanceof MetaStreamEvent) {
            return new SkipStateEventPopulator();
        } else {
            List<StateMappingElement> stateMappingElements = getMappingElements((MetaStateEvent) metaComplexEvent);
            return new SelectiveStateEventPopulator(stateMappingElements);
        }
    }
Constructs StateEventPopulator according to MetaStateEvent

@param metaComplexEvent info for populating the StateEvents
@return StateEventPopulator
modules/siddhi-core/src/main/java/io/siddhi/core/event/state/populater/StateEventPopulatorFactory.java