code: def linkify_with_notificationways(self, notificationways):
          
          for i in self:
              if not hasattr(i, 'notificationways'):
                  continue
              new_notificationways = []
              for nw_name in strip_and_uniq(i.notificationways):
                  notifway = notificationways.find_by_name(nw_name)
                  if notifway is not None:
                      new_notificationways.append(notifway.uuid)
                  else:
                      err = "The 'notificationways' of the %s '%s' named '%s' is unknown!" %\
                            (i.__class__.my_type, i.get_name(), nw_name)
                      i.add_error(err)
              # Get the list, but first make elements unique
              i.notificationways = list(set(new_notificationways))
  
              # Update the contact host/service notification commands properties
              i.get_notification_commands(notificationways, 'host', command_name=True)
              i.get_notification_commands(notificationways, 'service', command_name=True)
docs: Link hosts with realms
  
          :param notificationways: notificationways object to link with
          :type notificationways: alignak.objects.notificationway.Notificationways
          :return: None