final EntityModel entityModel,
final ObjectAssociation association,
final List<ObjectAction> associatedActions) {
final ObjectAdapter adapter = entityModel.load(ConcurrencyChecking.NO_CHECK);
final AuthenticationSessionProvider asa = (AuthenticationSessionProvider) Session.get();
AuthenticationSession authSession = asa.getAuthenticationSession();
final ObjectSpecification objectSpecification = entityModel.getTypeOfSpecification();
@SuppressWarnings({ "unchecked", "deprecation" })
Filter<ObjectAction> filter = Filters.and(
ObjectAction.Filters.memberOrderOf(association),