public static PageBody copy(PageBody existing) {
return new PageBody();
}
public static PortalConfig copy(PortalConfig existing) {
PortalConfig portalConfig = new PortalConfig(existing.getType(), existing.getName());
portalConfig.setAccessPermissions(copy(existing.getAccessPermissions()));
portalConfig.setDescription(existing.getDescription());
portalConfig.setEditPermission(existing.getEditPermission());
portalConfig.setLabel(existing.getLabel());
portalConfig.setLocale(existing.getLocale());
portalConfig.setModifiable(existing.isModifiable());
portalConfig.setPortalLayout(copy(existing.getPortalLayout()));
portalConfig.setProperties(new Properties(existing.getProperties()));
return portalConfig;
}