try
{
NotificationMessageHolderType[] notifMsg = notify.getNotificationMessage();
ResourcePropertyValueChangeNotificationDocument valChanged = (ResourcePropertyValueChangeNotificationDocument) XmlObject.Factory.parse((Node) notifMsg[0].getMessage());
NewValue newValue = valChanged.getResourcePropertyValueChangeNotification().getNewValue();
XmlCursor cursor = newValue.newCursor();
cursor.toFirstChild();
IntegerMetric newValueIntegerMetric = (IntegerMetric) cursor.getObject();
Integer newTemp = new Integer(newValueIntegerMetric.getStringValue());