code: public boolean isTerminated() {
          return this.currentState == COMPLETED || this.currentState == REJECTED || this.currentState == CANCELLED
                  || this.currentState == FAILED || this.currentState == REDIRECT;
      }
docs: Check whether the state of this {@link SimpleCallStateMachine} is
  considered to be terminated.
  
  @return