code: private void writeObject(ObjectOutputStream out) throws IOException {
      if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "writeObject", out);
      throw new NotSerializableException("TemporaryTopic");
    }
docs: The writeObject method for serialization.
  
  JmsDestination is declared as Serializable, which makes this class
  Serializable. However, a TemporaryQueue/Topic should never be copied and
  can't be used outside the scope of its session. Hence it makes no sense
  to even attempt to serialize so we just throw java.io.Serial
  
  @param out The ObjectOutputStream for serialization.
  @exception IOException A java.io.NotSerializablException is always thrown.