}
// now create the base profile containing the above profiles
profileDoc = XMLUtil.createDocument();
profile = profileDoc.createDocumentFragment();
profileRoot = profileDoc.createElementNS(null, "profile");
profile.appendChild(profileRoot);
profileRoot.appendChild(profileDoc.importNode(XMLUtil.selectSingleNode(layoutFragment,
"layout-profile"), true));
profileRoot.appendChild(profileDoc.importNode(XMLUtil.selectSingleNode(sunletsFragment,
"sunlets-profile"), true));