code: @Override
      public boolean isDestroyed() {
          final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();
          if (isTraceOn && tc.isEntryEnabled())
              Tr.entry(tc, "isDestroyed");
          if (state == DESTROYED) {
              if (isTraceOn && tc.isEntryEnabled())
                  Tr.exit(tc, "isDestroyed");
              return true;
          }
  
          if (isTraceOn && tc.isEntryEnabled())
              Tr.exit(tc, "isDestroyed");
          return false;
      }
docs: Method to allow container to condition removal of EJB from the EJB
  cache on whether the BeanO is in destroyed state (EJB's are not in
  the cache if there state is destroyed).