//
String timeString = xml.getAttribute(MuwsConstants.TIME);
if (timeString == null || timeString.length() == 0)
throw new InvalidMessageFormatFault(_MESSAGES.get("NoTransitionTime"));
try
{
_transitionTime = XsdUtils.getLocalTime(timeString);
}
catch (ParseException error)
{
throw new InvalidMessageFormatFault(error);
}
//
// now grab the two state values - the "previous" one is optional
//
Element previousXML = XmlUtils.getElement(xml, MuwsConstants.PREVIOUS_QNAME);
if (previousXML != null)
_previous = new SimpleStateType(previousXML);
Element enteredXML = XmlUtils.getElement(xml, MuwsConstants.ENTERED_QNAME);
if (enteredXML == null)
throw new InvalidMessageFormatFault(_MESSAGES.get("NoEnteredState"));
_entered = new SimpleStateType(enteredXML);
}