if (actions.size() > 0) {
if (actions.size() > 0 || commonActions.size()>0) {
    public void writeXML(PrintWriter out, int indent) {        XMLUtil.printIndent(out, indent++);        out.print("<step id=\"" + getId() + "\"");        if ((name != null) && (name.length() > 0)) {            out.print(" name=\"" + name + "\"");        }        out.println(">");        if (permissions.size() > 0) {            XMLUtil.printIndent(out, indent++);            out.println("<external-permissions>");            for (int i = 0; i < permissions.size(); i++) {                PermissionDescriptor permission = (PermissionDescriptor) permissions.get(i);                permission.writeXML(out, indent);            }            XMLUtil.printIndent(out, --indent);            out.println("</external-permissions>");        }        if (actions.size() > 0) {            XMLUtil.printIndent(out, indent++);            out.println("<actions>");            // special serialization common-action elements            for (int i = 0; i < commonActions.size(); i++) {                out.println("<common-action id=\"" + commonActions.get(i) + "\" />");            }            for (int i = 0; i < actions.size(); i++) {                ActionDescriptor action = (ActionDescriptor) actions.get(i);                action.writeXML(out, indent);            }            XMLUtil.printIndent(out, --indent);            out.println("</actions>");        }        XMLUtil.printIndent(out, --indent);        out.println("</step>");    }