/* find removed identities. */
if (oldIdentities.containsKey(ownIdentity)) {
for (Identity oldIdentity : oldIdentities.get(ownIdentity).values()) {
if (!currentIdentities.get(ownIdentity).containsKey(oldIdentity.getId())) {
logger.finest(String.format("Identity removed for %s: %s", ownIdentity.getId(), oldIdentity));
eventBus.post(new IdentityRemovedEvent(ownIdentity, oldIdentity));
}
}
/* check for changes in the contexts. */
for (Identity oldIdentity : oldIdentities.get(ownIdentity).values()) {