private static long getNextPriority(TableDescriptorBuilder builder) {
    String value = builder.getValue(COUNTER_KEY);

    long priority;
    // get the current priority
    if (value == null) {
      priority = MIN_PRIORITY;
    } else {
      priority = Long.parseLong(value) + 1;
    }

    return priority;
  }
Read in the configuration from the String encoded configuration
@param bytes to read from
@return A valid configuration
@throws IOException if the configuration could not be read
hbase-server/src/main/java/org/apache/hadoop/hbase/constraint/Constraints.java