added an exception to toXML in TransitionModel