public void readInternal(DataInput in) throws IOException { name = in.readUTF(); int targetBytesLength = in.readInt(); byte[] targetBytes = new byte[targetBytesLength]; in.readFully(targetBytes); this.target = (ActorRef) Util.toObject(targetBytes); }