workspace.addSection(section);
UIServices.lookup().getWorkspacesManager().store(workspace);
//Children
for (int i = 0; i < node.getChildren().size(); i++) {
XMLNode child = (XMLNode) node.getChildren().get(i);
if (ExportVisitor.PARAMETER.equals(child.getObjectName())) {
String name = child.getAttributes().getProperty(ExportVisitor.PARAMETER_ATTR_NAME);
if (ExportVisitor.SECTION_CHILD_TITLE.equals(name)) {
String value = child.getAttributes().getProperty(ExportVisitor.PARAMETER_ATTR_VALUE);
String lang = child.getAttributes().getProperty(ExportVisitor.PARAMETER_ATTR_LANG);
section.setTitle(value, lang);
}
} else if (ExportVisitor.RESOURCE.equals(child.getObjectName())) {
createResource(result, workspace.getId(), section.getId(), null, child, attributes, onStartup);
} else if (ExportVisitor.PANEL.equals(child.getObjectName())) {
createPanel(result, section, child, attributes, onStartup);
} else if (ExportVisitor.PERMISSION.equals(child.getObjectName())) {
createPermission(result, section.getWorkspace(), section, child, attributes);
}
}
}