}  if (dueDate != null) { buf.append(" due-date=\"").append(getDueDate()).append("\"");
    public void writeXML(PrintWriter out, int indent) {        XMLUtil.printIndent(out, indent++);        StringBuffer buf = new StringBuffer();        buf.append("<result");        if (hasId()) {            buf.append(" id=\"").append(getId()).append("\"");        }        buf.append(" old-status=\"").append(oldStatus).append("\"");        if (join != 0) {            buf.append(" join=\"").append(join).append("\"");        } else if (split != 0) {            buf.append(" split=\"").append(split).append("\"");        } else {            buf.append(" status=\"").append(status).append("\"");            buf.append(" step=\"").append(step).append("\"");            if ((owner != null) && (owner.length() > 0)) {                buf.append(" owner=\"").append(owner).append("\"");            }            if ((displayName != null) && (displayName.length() > 0)) {                buf.append(" display-name=\"").append(displayName).append("\"");            }        }        buf.append(">");        out.println(buf);        for (int i = 0; i < conditions.size(); i++) {            ConditionsDescriptor condition = (ConditionsDescriptor) conditions.get(i);            condition.writeXML(out, indent);        }        if (validators.size() > 0) {            XMLUtil.printIndent(out, indent++);            out.println("<validators>");            for (int i = 0; i < validators.size(); i++) {                ValidatorDescriptor validator = (ValidatorDescriptor) validators.get(i);                validator.writeXML(out, indent);            }            XMLUtil.printIndent(out, --indent);            out.println("</validators>");        }        printPreFunctions(out, indent);        printPostFunctions(out, indent);        XMLUtil.printIndent(out, --indent);        out.println("</result>");    }