waitStateElement.appendChild(timerElement);
//writeActions(document, waitStateElement, (Active) state);
writeTransitions(document, waitStateElement, state);
}
EndState endState = definition.getFirstChild(EndState.class);
if (endState != null) {
writeElement(document, root, endState);
}
}