} else if (a instanceof If) {
writeIf(writer, (If) a);
} else if (a instanceof Else) {
writer.writeEmptyElement(ELEM_ELSE);
} else if (a instanceof ElseIf) {
ElseIf eif = (ElseIf) a;
writer.writeStartElement(XMLNS_SCXML, ELEM_ELSEIF);
writeAV(writer, ATTR_COND, escapeXML(eif.getCond()));
writer.writeEndElement();
} else if (a instanceof Var) {
Var v = (Var) a;
writer.writeStartElement(XMLNS_COMMONS_SCXML, ELEM_VAR);
writeAV(writer, ATTR_NAME, v.getName());