public void write(PortableWriter writer) throws IOException {
writer.writeLong("tid", threadId);
writer.writeUTF("cid", conditionId);
ObjectDataOutput out = writer.getRawDataOutput();
namespace.writeData(out);
out.writeData(key);
}
@Override
public void read(PortableReader reader) throws IOException {
threadId = reader.readLong("tid");