public void createTransitionsForState(final Flow flow, final String stateId, final Map<String, String> criteriaAndTargets) {
        if (containsFlowState(flow, stateId)) {
            val state = getState(flow, stateId);
            criteriaAndTargets.forEach((key, v) -> createTransitionForState(state, key, v));
        }
    }
Create transitions for state.

@param flow               the flow
@param stateId            the state id
@param criteriaAndTargets the criteria and targets
core/cas-server-core-webflow-api/src/main/java/org/apereo/cas/web/flow/configurer/AbstractCasWebflowConfigurer.java