code: public boolean hasRegion(String region) {
          return regions.containsKey(region) || matchesRegionRegex(region) || hasServiceEndpoint
                  (region);
      }
docs: Returns true if the region is explicitly configured in the partition
  or if the region matches the {@link #regionRegex} of the partition.