} else if (entity instanceof IFeed) {
IFeed feed = (IFeed) entity;
modelEvent = new FeedEvent(feed, root);
} else if (entity instanceof IPerson) {
IPerson person = (IPerson) entity;
modelEvent = new PersonEvent(person, root);
} else if (entity instanceof IBookMark) {
IBookMark mark = (IBookMark) entity;
BookMarkEvent eventTemplate = (BookMarkEvent) template;
IFolder oldParent = eventTemplate == null ? null : eventTemplate.getOldParent();
modelEvent = new BookMarkEvent(mark, oldParent, root);