final ObjectAdapterMemento adapterMemento = model.getObjectAdapterMemento();
if (adapter != null) {
final List<ObjectAction> topLevelActions = getTopLevelActions(adapter);
if(!topLevelActions.isEmpty()) {
final ActionPromptProvider actionPromptProvider = ActionPromptProvider.Util.getFrom(this);
final CssMenuBuilder cssMenuBuilder = new CssMenuBuilder(
adapterMemento, topLevelActions, linkFactory, actionPromptProvider, null);
final CssMenuPanel cssMenuPanel = cssMenuBuilder.buildPanel(ID_ENTITY_ACTIONS, "Actions");
this.addOrReplace(cssMenuPanel);