if (conditions.size() > 0) { for (int i = 0; i < conditions.size(); i++) { ConditionsDescriptor condition = (ConditionsDescriptor) conditions.get(i); condition.writeXML(out, indent); } }
conditions.writeXML(out, indent++);
    public void writeXML(PrintWriter out, int indent) {        if (conditions.size() == 0) {            return;        }        XMLUtil.printIndent(out, indent++);        out.println("<restrict-to>");        if (conditions.size() > 0) {            for (int i = 0; i < conditions.size(); i++) {                ConditionsDescriptor condition = (ConditionsDescriptor) conditions.get(i);                condition.writeXML(out, indent);            }        }        XMLUtil.printIndent(out, --indent);        out.println("</restrict-to>");    }