code: public Region getContainingRegion(RegionType type) {
          loadRegionData();
          if ( containingRegion == null ) {
              return null;
          }
          if ( containingRegion.type.equals(type)) {
              return containingRegion;
          } else {
              return containingRegion.getContainingRegion(type);
          }
      }
docs: Used to determine the macroregion that geographically contains this region and that matches the given type.
  
  @return The region that geographically contains this region and matches the given type.  May return NULL if
  no containing region can be found that matches the given type.  For example, calling this method with region "IT" (Italy)
  and type CONTINENT returns the region "150" (Europe).