@Override
    public State getState() {
        if (state == null) {
            state = stateFactory.createNewState();
            groupByStates.put(null, state);
        }
        return state;
    }
State holder for non partition use case
modules/siddhi-core/src/main/java/io/siddhi/core/util/snapshot/state/SingleStateHolder.java