RequestProcessingStateInformationType requestProcessingStateInformationType = notif.addNewStateInformation();
StateTransitionType stateTransitionType = requestProcessingStateInformationType.addNewStateTransition();
XmlObject currentState = XmlObject.Factory.parse("<tns:temp xmlns:tns=\"http://tempcentral.com/temps\">Cool</tns:temp>");
StateType enteredState = stateTransitionType.addNewEnteredState();
XmlBeanUtils.addChildElement(enteredState, currentState);
StateType prevState = stateTransitionType.addNewPreviousState();
XmlBeanUtils.addChildElement(prevState, currentState);
stateTransitionType.setTransitionIdentifier("urn:NONE");
stateTransitionType.setTime(currentTime);
notif.setCurrentTime(currentTime);