ContentItemType contentItemType = contentEntity.getContentItemType();
if ((contentItemType == ContentItemType.EVENT || contentItemType == ContentItemType.NARRATIVE)
&& !linkedContentEntityIds.isEmpty()) {
List<Object> oids = new ArrayList<Object>(linkedContentEntityIds.size());
for (Long id : linkedContentEntityIds) {
oids.add(pm.newObjectIdInstance(BaseContentEntity.class, id));
}
@SuppressWarnings("unchecked")
Collection<BaseContentEntity> linkedContentEntities = pm.getObjectsById(oids);
for (BaseContentEntity linkedContentEntity : linkedContentEntities) {