code: public void postUpdate()
      {
          if (current != null)
          {
              final Class<? extends State> next = current.checkTransitions(last);
              if (next != null)
              {
                  changeState(next);
              }
          }
      }
docs: Post update checking next transition if has.