*/
private static void readFinal(final XMLStreamReader reader, final Configuration configuration, final SCXML scxml,
final State parent)
throws XMLStreamException, ModelException, IOException {
Final end = new Final();
end.setId(readOrGeneratedTransitionTargetId(reader, scxml, ELEM_FINAL));
if (parent == null) {
scxml.addChild(end);
} else {
parent.addChild(end);