code: public ActivityHandle unmarshalHandle(DataInput arg0) throws IOException {
  
  		final byte handleType = arg0.readByte();
  
  		if (handleType == dialogWithIdActivityHandle) {
  			final String dialogId = arg0.readUTF();
  			return new DialogWithIdActivityHandle(dialogId);
  		} 
  		else {
  			final String callId = arg0.readUTF();
  			final String localTag = arg0.readUTF();
  			return new DialogWithoutIdActivityHandle(callId, localTag);
  		}
  	}
docs: /*
  (non-Javadoc)
  
  @see javax.slee.resource.Marshaler#unmarshalHandle(java.io.DataInput)