public Transition getTransitionByStateAndSymbol(String state, String symbol) throws Exception{
        for(Transition tran: transitions){
            if(tran.matchByStateAndSymbol(state, symbol, getSymbolByAlter(tran.getSymbolRef())))
                return tran;
        }
        return null;
    }