}
String locationScope = location.containsField("scope") ? location.getString("scope") : null;
if (locationScope != null) {
LocationScope scope = LocationScope.valueOf(locationScope);
switch (scope) {
case REGION:
civMetadata.put("targetRegion", location.get("id"));
regionProcessed = true;