private void handleOptionFields(Collection options, DOMOutputBuffer dom,
int count) {
for (Iterator i = options.iterator(); i.hasNext(); count += 1) {
Object unknown = i.next();
if (unknown instanceof SelectOption) {
SelectOption option = (SelectOption) unknown;
Element element = dom.addStyledElement("field", option);
// @todo better (BW) - why is the option variable not used?
element.setAttribute("name", "option" + count);
element.setAttribute("type", "boolean");
} else {