}
static private void deserializeAndUpdateProfile(RemoteProfileManagerImpl manager,
FetchedProfile fetchedProfile) {
ParticipantId participantId = ParticipantId.ofUnsafe(fetchedProfile.getAddress());
ProfileImpl profile = manager.getProfile(participantId);
// Profiles already exist for all profiles that have been requested.
assert profile != null;
// Updates profiles - this also notifies listeners.
profile
.update(fetchedProfile.getName(), fetchedProfile.getName(), fetchedProfile.getImageUrl());
}