Var v = (Var) a;
b.append(indent).append("<var name=\"").append(v.getName())
.append("\" expr=\"").append(v.getExpr()).append(
"\"/>\n");
} else if (a instanceof Assign) {
Assign asn = (Assign) a;
b.append(indent).append("<assign");
if (!SCXMLHelper.isStringEmpty(asn.getLocation())) {
b.append(" location=\"").append(asn.getLocation());
if (!SCXMLHelper.isStringEmpty(asn.getSrc())) {
b.append("\" src=\"").append(asn.getSrc());
} else {
b.append("\" expr=\"").append(asn.getExpr());
}
} else {
b.append(" name=\"").append(asn.getName()).
append("\" expr=\"").append(asn.getExpr());
}
b.append("\"/>\n");
} else if (a instanceof Send) {
serializeSend(b, (Send) a, indent);
} else if (a instanceof Cancel) {