final EntityModel entityModelForLink = new EntityModel(adapter);
entityModelForLink.setContextAdapterIfAny(getModel().getContextAdapterIfAny());
entityModelForLink.setRenderingHint(getModel().getRenderingHint());
final ComponentFactory componentFactory =
getComponentFactoryRegistry().findComponentFactory(ComponentType.ENTITY_ICON_AND_TITLE, entityModelForLink);
// final ComponentFactory componentFactory =
// getComponentFactoryRegistry().findComponentFactory(ComponentType.ENTITY_ICON_TITLE_AND_COPYLINK, entityModelForLink);
final Component component = componentFactory.createComponent(entityModelForLink);
((MarkupContainer)getComponentForRegular()).addOrReplace(component);
}
} else {
permanentlyHideEntityIconAndTitleIfInRegularMode();