void (@Nullable String json) { if (json == null || json.isBlank()) { return; } try { final Collection<ConsentAttributes> fromServer = fromJson(json); // defaults final Map<String, Consent> defaults = loadDefaultConsents(); if (applyServerChangesToDefaults(defaults, fromServer)) { myBackend.writeDefaultConsents(consentsToJson(defaults.values().stream())); } // confirmed consents final Map<String, ConfirmedConsent> confirmed = loadConfirmedConsents(); if (applyServerChangesToConfirmedConsents(confirmed, fromServer)) { myBackend.writeConfirmedConsents(confirmedConsentToExternalString(confirmed.values().stream())); } } catch (Exception e) { LOG.info(e); } }