public Transition getTransition(StateEnum stateFrom, EventEnum event) {
        Map<EventEnum, Transition> transitionMap = transitionFromState.get(stateFrom);
        return transitionMap == null ? null : transitionMap.get(event);
    }