@Override
 public void toData(DataOutput out) throws IOException {
   super.toData(out);
   DataSerializer.writeObject(this.elementType, out);
 }