public void write(PortableWriter writer)
throws IOException {
writer.writeBoolean("c", create);
writer.writeInt("p", partitionId);
final ObjectDataOutput out = writer.getRawDataOutput();
out.writeObject(cacheConfig);
}
public void read(PortableReader reader)
throws IOException {
create = reader.readBoolean("c");