code: public boolean isState(Class<? extends State> state)
      {
          if (current != null)
          {
              return current.getClass().equals(state);
          }
          return false;
      }
docs: Check the current state.
  
  @param state The state to check.
  @return <code>true</code> if it is this state, <code>false</code> else.