code: private void clearState() {
  
          if (m_state != null) {
              ParamState state = m_state;
              m_state = null;
              state.undoChanges();
          }
      }
docs: Clears the tag state if it is set, and restores the previous set of parameters.<p>