if (!entity.isChangedBy(update)) {
return entity;
}
log.debug("Applying content update for org: {}, {}", entity, owner);
Content updated = this.applyContentChanges((Content) entity.clone(), update);
<BUG>List<Content> alternateVersions = this.contentCurator

.getContentByVersion(update.getId(), updated.getEntityVersion())
.list();</BUG>
log.debug("Checking {} alternate content versions", alternateVersions.size());

if (!entity.isChangedBy(update)) {
return entity;
}
log.debug("Applying content update for org: {}, {}", entity, owner);
Content updated = this.applyContentChanges((Content) entity.clone(), update);
List<Content> alternateVersions = this.ownerContentCurator.getContentByVersions(
owner, Collections.<String, Integer>singletonMap(updated.getId(), updated.getEntityVersion()))
.list();
log.debug("Checking {} alternate content versions", alternateVersions.size());
