static void sendNotification(ManagedResource resource, Notification notif) {
      try {
        if (MBeanUtils.isRegistered(resource.getObjectName())) {
          resource.getModelMBean().sendNotification(notif);
          if (logger.isDebugEnabled()) {
            logger.debug("Sent '{}' notification", notif.getType());
          }
        }
      } catch (RuntimeOperationsException e) {
        logger
            .info(String.format("Failed to send %s notification for %s",
                "'" + notif.getType() + "'", "'" + notif.getMessage() + "'"),
                e);
      } catch (MBeanException e) {
        logger
            .info(String.format("Failed to send %s notification for %s",
                "'" + notif.getType() + "'", "'" + notif.getMessage() + "'"),
                e);
      }
    }
Sends the given notification.

@param notif notification to send

@throws NullPointerException if resource or ModelMBean for resource is null
geode-core/src/main/java/org/apache/geode/admin/jmx/internal/SystemMemberJmx.java