@Override
  public Iterator<HRegionLocation> iterator() {
    return Arrays.asList(locations).iterator();
  }
Returns the first not-null region location in the list
hbase-client/src/main/java/org/apache/hadoop/hbase/RegionLocations.java