public void read(PortableReader reader) throws IOException {
   super.read(reader);
   final ObjectDataInput in = reader.getRawDataInput();
   key = new Data();
   key.readData(in);
 }
 public void write(PortableWriter writer) throws IOException {
   super.write(writer);
   final ObjectDataOutput out = writer.getRawDataOutput();
   key.writeData(out);
 }