private void notifyMasterPeer(List<PeerAddress> peerList, BaseNotificationMessageFactory messageFactory, String userId,
PublicKey publicKey) {
boolean success = false;
while (!success && !peerList.isEmpty()) {
PeerAddress initial = NetworkUtils.choseFirstPeerAddress(peerList);
BaseDirectMessage msg = messageFactory.createHintNotificationMessage(initial, userId);
try {
sendDirect(msg, publicKey);
success = true;
} catch (SendFailedException e) {
if (!peerList.isEmpty()) {