docs: @Override
      public void flushCache() {
          // Calling flushCache is not allowed from several states.
          if ((state == PRE_CREATE) || // prevent in setSessionContext
              (state == CREATING) ||
              (state == REMOVING) ||
              (state == ACTIVATING) ||
              (state == PASSIVATING) ||
              (state == DESTROYED) ||
              (state == AFTER_COMPLETION)) {
              IllegalStateException ise;
  
              ise = new IllegalStateException("StatefulBean: flushCache not " +
                                              "allowed from state = " +
                                              getStateName(state));
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                  Tr.debug(tc, "flushCache: " + ise);
  
              throw ise;
          }
  
          super.flushCache();
      }