docs: private void onStateChange()
      {
          StateEpisode stateEpisode = getStateEpisodeForState(this.state);
          StateEpisode lastEpisode = this.eventWrapper.setStateEpisode(stateEpisode);
          if (lastEpisode != null)
          	lastEpisode.cleanup();
          
          if (stateEpisode != null)
              stateEpisode.start();
      }