if (contentAssoc == null || contentAssoc.size() == 0) {
<BUG>List assocs = delegator.findByAnd("ContentAssoc", UtilMisc.toMap("contentId", contentIdFrom));
</BUG>
assocs = EntityUtil.filterByDate(assocs);
<BUG>if (assocs != null) {
Iterator i = assocs.iterator();
while (i.hasNext()) {
GenericValue assoc = (GenericValue) i.next();</BUG>
if (verifySubContent(delegator, contentId, assoc.getString("contentIdTo"))) {
return true;

if (contentAssoc == null || contentAssoc.size() == 0) {
List<GenericValue> assocs = delegator.findByAnd("ContentAssoc", UtilMisc.toMap("contentId", contentIdFrom));
assocs = EntityUtil.filterByDate(assocs);
if (assocs != null) {
for (GenericValue assoc: assocs) {
if (verifySubContent(delegator, contentId, assoc.getString("contentIdTo"))) {
return true;
