private static Configuration readConfiguration(byte[] bytes) throws IOException {
    ByteArrayInputStream is = new ByteArrayInputStream(bytes);
    Configuration conf = new Configuration(false);
    conf.addResource(is);
    return conf;
  }
Read the {@link Configuration} stored in the byte stream.
@param bytes to read from
@return A valid configuration
hbase-server/src/main/java/org/apache/hadoop/hbase/constraint/Constraints.java