code: public void handleNotification(Notification notification, Object handback) {
          if (notification instanceof AttributeChangeNotification) {
              AttributeChangeNotification attributeChangeNotification = (AttributeChangeNotification) notification;
              JobReport jobReport = (JobReport)attributeChangeNotification.getNewValue();
              onJobReportUpdate(jobReport);
          }
  
          if (notification instanceof JMXConnectionNotification) {
              JMXConnectionNotification jmxConnectionNotification = (JMXConnectionNotification) notification;
              String type = jmxConnectionNotification.getType();
              switch (type) {
                  case JMXConnectionNotification.OPENED: onConnectionOpened(); break;
                  case JMXConnectionNotification.CLOSED: onConnectionClosed(); break;
                  default: break;
              }
          }
  
      }
docs: {@inheritDoc}