code: private void checkState() {
          if (startWith == null && lastResult == null) {
              final String msg = "Please call startWith(uri) first.";
              LOG.error(msg);
              throw new IllegalStateException(msg);
          }
      }
docs: Checks the current state of the Traverson.
  
  @throws IllegalStateException if some error occured during traversion