@Deprecated private byte[] getBytes(HRegionInfo hri) throws IOException { DataOutputBuffer out = new DataOutputBuffer(); try { hri.write(out); return out.getData(); } finally { if (out != null) { out.close(); } } }