dataMap.addObjEntity(entity);
// perform the merge
EntityMergeSupport merger = new EntityMergeSupport(dataMap);
merger.addEntityMergeListener(DeleteRuleUpdater.getEntityMergeListener());
merger.synchronizeWithDbEntity(entity);
fireObjEntityEvent(this, mediator, dataMap, entity);
application.getUndoManager().addEdit(
new CreateObjEntityUndoableEdit(dataMap, entity));