code: @Override
      public void flushCache() {
          // Calling flushCache is not allowed from setMessageDrivenContext.
          if ((state == PRE_CREATE)) // prevent in setMessageDrivenContext
          {
              IllegalStateException ise;
  
              ise = new IllegalStateException("MessageDrivenBean: flushCache not " +
                                              "allowed from state = " +
                                              getStateName(state));
              if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
                  Tr.debug(tc, "flushCache: " + ise);
  
              throw ise;
          }
  
          super.flushCache();
      }
docs: LI3492-2