* @return OperationalStatus (i.e. Available)
*/
private String parseCurrentOperationalStatus(ManagementEventTypeImpl manEvt)
{
XmlObject[] childElements = XmlBeanUtils.getChildElements(manEvt);
ResourcePropertyValueChangeNotificationType propChange = null;
for (int i = 0; i < childElements.length; i++) {
if(childElements[i] instanceof ResourcePropertyValueChangeNotificationType)
{
propChange =
(ResourcePropertyValueChangeNotificationType) childElements[i];
break;
}
}
if(propChange == null) return "Unavailable";
ResourcePropertyValueChangeNotificationType.NewValue newValue = propChange.getNewValue();
XmlObject operationalStatus =
XmlBeanUtils.getChildElements(newValue)[0];
XmlCursor xmlCursor = operationalStatus.newCursor();
return xmlCursor.getTextValue();
}