@Override
public void processElement(StateMachine stateMachine, XMLStreamReader xmlStreamReader)
throws Exception
{
if(!xmlStreamReader.getLocalName().equals(_currentState))
throw new DatabusException("Unexpected state, expected " + _currentState + ", found: " + xmlStreamReader.getLocalName());
if(xmlStreamReader.isEndElement())
{
onEndElement(stateMachine, xmlStreamReader);
}