boolean merged = isMerged(template);
if (entity instanceof INews) {
modelEvent = createNewsEvent((INews) entity, template, root, merged);
} else if (entity instanceof IAttachment) {
IAttachment attachment = (IAttachment) entity;
modelEvent = new AttachmentEvent(attachment, root);
} else if (entity instanceof ICategory) {
ICategory category = (ICategory) entity;
modelEvent = new CategoryEvent(category, root);
} else if (entity instanceof IFeed) {
IFeed feed = (IFeed) entity;