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;
modelEvent = new FeedEvent(feed, root);