code: public synchronized void sendNotification(PropertyChangeEvent pEvt) {
          String oldValue = pEvt.getOldValue() == null ? "null" : pEvt.getOldValue().toString();
          String newValue = pEvt.getNewValue() == null ? "null" : pEvt.getNewValue().toString();
          String sourceName = pEvt.getSource().getClass().getCanonicalName();
          String message = sourceName + ":" + pEvt.getPropertyName() + " changed from " + oldValue + " to " + newValue;
          Notification n = new AttributeChangeNotification(sourceName, notifSequenceNumber++, System.currentTimeMillis(), message,
                pEvt.getPropertyName(), "java.lang.String", oldValue, newValue);
          sendNotification(n);
          logger.trace("Sent notification: " + message);
      }
docs: Send a JMX notification of a property change event
  
  @param pEvt a property change event