try {
val currentIdentities = identityLoader.loadIdentities()
+ val onlyTrustedByAll = currentIdentities.mapValues { (ownIdentity, trustedIdentities) ->
+ trustedIdentities.filter { trustedIdentity ->
+ currentIdentities.all { trustedIdentity in it.value }
+ }
+ }
+ logger.log(Level.FINE, "Reduced (${currentIdentities.size},(${currentIdentities.values.joinToString { it.size.toString() }})) identities to (${onlyTrustedByAll.size},(${onlyTrustedByAll.values.joinToString { it.size.toString() }})).")
+
val identityChangeEventSender = IdentityChangeEventSender(eventBus, oldIdentities)
identityChangeEventSender.detectChanges(currentIdentities)