Properties props = new Properties();
JahiaSite site = new JahiaSite(siteId, node.getProperty("j:title").getString(), node.getProperty("j:serverName").getString(),
node.getName(), node.getProperty("j:description").getString(), props, node.getPath());
Value s = node.getProperty("j:templatesSet").getValue();
final JahiaTemplatesPackage aPackage = ServicesRegistry.getInstance().getJahiaTemplateManagerService()
.getTemplatePackageByFileName(s.getString());
if (aPackage != null) {
site.setTemplatePackageName(aPackage.getName());
}
List<String> installedModules = new ArrayList<String>();
Value[] modules = node.getProperty("j:installedModules").getValues();
for (Value module : modules) {