partyRole.create();
}
//ContentRole for eBay User
List<GenericValue> contentRoles = delegator.findByAnd("ContentRole", UtilMisc.toMap("partyId", partyId, "roleTypeId", "OWNER", "contentId", contentId));
if (contentRoles.size() == 0) {
GenericValue contentRole = delegator.makeValue("ContentRole");
contentRole.put("contentId", contentId);
contentRole.put("partyId", partyId);
contentRole.put("roleTypeId", "OWNER");
contentRole.put("fromDate", UtilDateTime.nowTimestamp());
contentRole.create();