if ( config.rootTag ) {
XMLUtils.startElement(handler, config.tagName);
}
AttributesImpl attributes = new AttributesImpl();
CompositeLayout tabLayout = (CompositeLayout) layout;
// selected tab
Integer data = (Integer) layout.getAspectData(config.aspectName);
int selected = data.intValue();
// loop over all tabs
for (int j = 0; j < tabLayout.getSize(); j++) {
Item tab = tabLayout.getItem(j);
ChangeAspectDataEvent event = null;
// open named-item tag
attributes.clear();
if ( tab instanceof NamedItem ) {