@Override
public void processData(String id, IdentifiableMessage<String, UnitConfig, UnitConfig.Builder> entry, ProtoBufMessageMap<String, UnitConfig, UnitConfig.Builder> entryMap, ProtoBufRegistry<String, UnitConfig, UnitConfig.Builder> registry) throws CouldNotPerformException, EntryModification {
UnitConfig locationConfig = entry.getMessage();
ScopeType.Scope newScope = ScopeGenerator.generateLocationScope(locationConfig, entryMap);
if (!ScopeGenerator.generateStringRep(locationConfig.getScope()).equals(ScopeGenerator.generateStringRep(newScope))) {
entry.setMessage(locationConfig.toBuilder().setScope(newScope));
throw new EntryModification(entry, this);
}
}
}