private static PTable deserializeTable(byte[] b) {
ByteArrayInputStream stream = new ByteArrayInputStream(b);
try {
DataInputStream input = new DataInputStream(stream);
PTable table = new PTableImpl();
table.readFields(input);
return table;
} catch (IOException e) {
throw new RuntimeException(e);
} finally {
try {