code: public void sendNotification(NotificationType type,
                                   String subject,
                                   String message,
                                   String... destinations) {
          for (Notifier notifier : notifiers) {
              if (notifier.getNotificationType().equals(type)) {
                  notifier.notify(subject, message, destinations);
              }
          }
      }
docs: Sends a notification through all configured notifiers of a given type.
  
  @param type         of notification to be sent
  @param subject      of the notification
  @param message      of the notification
  @param destinations where notification is to be sent