}
return topLevelActions;
}
private void addTopLevelActions(final ObjectAdapter adapter, ActionType actionType, final List<ObjectAction> topLevelActions) {
final ObjectSpecification adapterSpec = adapter.getSpecification();
@SuppressWarnings({ "unchecked", "deprecation" })
Filter<ObjectAction> filter = Filters.and(
memberOrderNameNotAssociation(adapterSpec),
dynamicallyVisibleFor(adapter),
ObjectAction.Filters.notBulkOnly());
final List<ObjectAction> userActions = adapterSpec.getObjectActions(actionType, Contributed.INCLUDED, filter);
topLevelActions.addAll(userActions);
}