code: public static boolean containsTerritory(@Nonnull final String mapcode) throws IllegalArgumentException {
          checkMapcodeCode("mapcode", mapcode);
          return PATTERN_TERRITORY.matcher(mapcode.toUpperCase().trim()).find();
      }
docs: Returns whether the mapcode contains territory information or not.
  
  @param mapcode Mapcode string, optionally with territory information.
  @return True if mapcode contains territory information.
  @throws IllegalArgumentException If mapcode has incorrect syntax.