stream.writeObject(workflow);
stream.writeObject(null);
  private void writeObject(ObjectOutputStream stream) throws IOException {    stream.defaultWriteObject();    stream.writeObject(directObject);    writeArrayList(stream, phrases);    if (stream instanceof org.cougaar.core.persist.PersistenceOutputStream) {      stream.writeObject(workflow);      stream.writeObject(myAnnotation);      stream.writeObject(observableAspects);    } else {      stream.writeObject(myPE);    // this should be derived, not persisted!    }    synchronized (this) {     //  make sure the prefs aren't changing while writing      stream.writeObject(preferences);    }  }