private void handleNonAcceptState() { if (dfa.isInErrorState()) handleErrorState(); else if (dfa.isInSpaceState()) dfa.reset(); }