private static class MyRegionSource implements RegionSource {
private final ExternalIdBundle _regionBundle;
private final Region _region;
public MyRegionSource(final String countryId) {
final SimpleRegion region = new SimpleRegion();
final ExternalId id = ExternalId.of(ExternalSchemes.ISO_COUNTRY_ALPHA2, countryId);
region.addExternalId(id);
region.setUniqueId(UniqueId.of(UniqueId.EXTERNAL_SCHEME.getName(), id.getValue()));
_regionBundle = ExternalIdBundle.of(id);
_region = region;
}