XMLNode node = new XMLNode(SECTION, currentNode);
node.addAttribute(SECTION_ATTR_ID, section.getId().toString());
node.addAttribute(SECTION_ATTR_ID_TEMPLATE, section.getLayoutId());
node.addAttribute(SECTION_ATTR_POSITION, String.valueOf(section.getPosition()));
node.addAttribute(SECTION_ATTR_VISIBLE, section.isVisible().toString());
node.addAttribute(SECTION_ATTR_REGIONSPACING, section.getRegionsCellSpacing().toString());
node.addAttribute(SECTION_ATTR_PANELSPACING, section.getPanelsCellSpacing().toString());
if (section.getParentSectionId() != null)
node.addAttribute(SECTION_ATTR_PARENT_ID, section.getParentSectionId().toString());
node.addAttribute(SECTION_ATTR_FR_URL, section.getFriendlyUrl());
node.addAttribute(SECTION_ATTR_SKIN_ID, section.getSkinId());