code: public void marshalHandle(ActivityHandle arg0, DataOutput arg1)
  			throws IOException {
  
  		final Class<?> handleType = arg0.getClass();
  
  		if (handleType == DialogWithIdActivityHandle_TYPE) {
  			arg1.writeByte(dialogWithIdActivityHandle);
  			final DialogWithIdActivityHandle handle = (DialogWithIdActivityHandle) arg0;
  			arg1.writeUTF(handle.getDialogId());
  		} else if (handleType == DialogWithoutIdActivityHandle_TYPE) {
  			arg1.writeByte(dialogWithoutIdActivityHandle);
  			final DialogWithoutIdActivityHandle handle = (DialogWithoutIdActivityHandle) arg0;
  			arg1.writeUTF(handle.getCallId());
  			arg1.writeUTF(handle.getLocalTag());
  		} else {
  			throw new IOException("unknown activity handle type");
  		}
  	}
docs: /*
  (non-Javadoc)
  
  @seejavax.slee.resource.Marshaler#marshalHandle(javax.slee.resource.
  ActivityHandle, java.io.DataOutput)