public void write(PortableWriter writer) throws IOException {
writer.writeInt("i", index);
writer.writeLong("t", threadId);
super.write(writer);
final ObjectDataOutput out = writer.getRawDataOutput();
out.writeData(value);
}
public void read(PortableReader reader) throws IOException {
index = reader.readInt("i");
threadId = reader.readLong("t");