final EntityModel entityModelForLink = new EntityModel(adapter);
entityModelForLink.setContextAdapterIfAny(getEntityModel().getContextAdapterIfAny());
entityModelForLink.setRenderingHint(getEntityModel().getRenderingHint());
final ComponentFactory componentFactory = getComponentFactoryRegistry().findComponentFactory(ComponentType.ENTITY_ICON_AND_TITLE, entityModelForLink);
final Component component = componentFactory.createComponent(entityModelForLink);
addOrReplace(component);
permanentlyHide(ID_ENTITY_TITLE_NULL);
} else {
// represent no object by a simple label displaying '(null)'