if (!started) xml.startElement("widgets");
if (!started) { xml.startElement("widgets"); started = true; }
	protected void writeContent(XMLWriter xml) throws SAXException {		Component kids[] = getComponents();		boolean started = false;		if (kids != null && kids.length > 0) {			for (int i = 0; i < kids.length; i++) {				if (kids[i] instanceof Widget) {					if (!started)						xml.startElement("widgets");					((Widget)kids[i]).write(xml);				}			}			if (started)				xml.endElement("widgets");		}	}