final ObjectAdapter adapter,
final ActionType actionType,
final List<ObjectAction> topLevelActions) {
final ObjectSpecification adapterSpec = adapter.getSpecification();
final AuthenticationSession authenticationSession = getAuthenticationSession();
@SuppressWarnings({ "unchecked", "deprecation" })
Filter<ObjectAction> filter = Filters.and(
ObjectAction.Filters.memberOrderNotAssociationOf(adapterSpec),
ObjectAction.Filters.dynamicallyVisible(authenticationSession, adapter, Where.ANYWHERE),