public static List<RegionInfo> getTableRegions(Connection connection, TableName tableName)
    throws IOException {
    return getTableRegions(connection, tableName, false);
  }
Gets all of the regions of the specified table. Do not use this method to get meta table
regions, use methods in MetaTableLocator instead.
@param connection connection we're using
@param tableName  table we're looking for
@return Ordered list of {@link RegionInfo}.
hbase-server/src/main/java/org/apache/hadoop/hbase/MetaTableAccessor.java