Debug.logVerbose("in cloneLayout, newContent:" + newContent, "");
String oldName = (String)content.get("contentName");
newId = delegator.getNextSeqId("Content");
newContent.set("contentId", newId);
String dataResourceId = (String)content.get("dataResourceId");
GenericValue dataResource = delegator.findByPrimaryKey("DataResource", UtilMisc.toMap("dataResourceId", dataResourceId));
if (dataResource != null) {
GenericValue newDataResource = delegator.makeValue("DataResource", dataResource);
Debug.logVerbose("in cloneLayout, newDataResource:" + newDataResource, "");
String dataResourceName = "Copy:" + (String)dataResource.get("dataResourceName");
newDataResource.set("dataResourceName", dataResourceName);