public void read(PortableReader reader) throws IOException {
name = reader.readUTF("name");
conditionId = reader.readUTF("cid");
threadId = reader.readLong("tid");
all = reader.readBoolean("all");
final ObjectDataInput in = reader.getRawDataInput();
namespace = new InternalLockNamespace();
namespace.readData(in);
}