if (overwrite) {
throw new IllegalArgumentException("Cannot update portal " + config.getName() + " that does not exist");
}
//
site = workspace.addSite(type, config.getName());
Page root = site.getRootPage();
root.addChild("pages");
root.addChild("templates");
}
new Mapper(session).save(config, site);