modelEvent = new LabelEvent(oldLabel, label, root);
} else if (entity instanceof ISearchCondition) {
ISearchCondition searchCond = (ISearchCondition) entity;
modelEvent = new SearchConditionEvent(searchCond, root);
} else if (entity instanceof IPreference) {
IPreference pref = (IPreference) entity;
modelEvent = new PreferenceEvent(pref);
} else if (entity instanceof ISearch) {
ISearch search = (ISearch) entity;
modelEvent = new SearchEvent(search, root);
} else if (entity instanceof ISearchFilter) {