public static RegionEventDescriptor toRegionEventDescriptor(EventType eventType,
    org.apache.hadoop.hbase.client.RegionInfo hri, long seqId, ServerName server,
    Map<byte[], List<Path>> storeFiles) {
    final byte[] tableNameAsBytes = hri.getTable().getName();
    final byte[] encodedNameAsBytes = hri.getEncodedNameAsBytes();
    final byte[] regionNameAsBytes = hri.getRegionName();
    return toRegionEventDescriptor(eventType, tableNameAsBytes, encodedNameAsBytes,
      regionNameAsBytes, seqId,

      server, storeFiles);
  }
Unwraps an exception from a protobuf service into the underlying (expected) IOException. This
method will <strong>always</strong> throw an exception.
@param se the {@code ServiceException} instance to convert into an {@code IOException}
@throws NullPointerException if {@code se} is {@code null}
hbase-client/src/main/java/org/apache/hadoop/hbase/shaded/protobuf/ProtobufUtil.java