final Consent visibility = noAction.isVisible(session, adapter);
if (visibility.isVetoed()) {
return null;
}
final LinkAndLabel linkAndLabel =
cssMenuLinkFactory.newLink(adapterMemento, noAction, PageAbstract.ID_MENU_LINK);
final Link<?> link = linkAndLabel.getLink();
final String actionLabel = linkAndLabel.getLabel();
final Consent usability = noAction.isUsable(session, adapter);
final String reasonDisabledIfAny = usability.getReason();
return parentMenuItem.newSubMenuItem(actionLabel).link(link).enabled(reasonDisabledIfAny);