static int parseReplicaIdFromServerColumn(byte[] serverColumn) {
    String serverStr = Bytes.toString(serverColumn);

    Matcher matcher = SERVER_COLUMN_PATTERN.matcher(serverStr);
    if (matcher.matches() && matcher.groupCount() > 0) {
      String group = matcher.group(1);
      if (group != null && group.length() > 0) {
        return Integer.parseInt(group.substring(1), 16);
      } else {
        return 0;
      }
    }
    return -1;
  }
Parses the replicaId from the server column qualifier. See top of the class javadoc for the
actual meta layout
@param serverColumn the column qualifier
@return an int for the replicaId
hbase-client/src/main/java/org/apache/hadoop/hbase/CatalogFamilyFormat.java