final Iterator params = m_params.iterator();
final Iterator params = m_registered.iterator();
    void writeXML(final PrintWriter out) {        Assert.exists(out, PrintWriter.class);        out.write("<record>");        field(out, "name", m_name);        final Iterator params = m_params.iterator();        while (params.hasNext()) {            final Parameter param = (Parameter) params.next();            out.write("<parameter>");            field(out, "name", param.getName());            if (param.isRequired()) {                out.write("<required/>");            }            final Object defaalt = param.getDefaultValue();            if (defaalt != null) {                if (defaalt instanceof Object[]) {                    final Object[] elems = (Object[]) defaalt;                    final StringBuffer buffer = new StringBuffer();                    for (int i = 0; i < elems.length; i++) {                        buffer.append(elems[i].toString());                        buffer.append(", ");                    }                    final int len = buffer.length();                    if (len > 2) {                        field(out, "default", buffer.substring(0, len - 2));                    }                } else {                    field(out, "default", defaalt.toString());                }            }            final ParameterInfo info = param.getInfo();            field(out, "title", info.getTitle());            field(out, "purpose", info.getPurpose());            field(out, "example", info.getExample());            field(out, "format", info.getFormat());            out.write("</parameter>");        }        out.write("</record>");    }