public void writeExternal(ObjectOutput out) throws IOException {
  RemoteRef localRef=ref;
  out.writeObject(id);
  if (localRef == null) {
    out.writeUTF("");
  }
 else {
    out.writeUTF(localRef.getRefClass(out));
    localRef.writeExternal(out);
  }
}

public void writeExternal ( ObjectOutput out ) throws IOException { RemoteRef localRef = ref ; out . writeObject ( id ) ; if ( localRef == null ) { out . writeUTF ( "" ) ; } else { out . writeUTF ( localRef . getRefClass ( out ) ) ; localRef . writeExternal ( out ) ; } }
write out external representation for remote ref .
