def METHOD_NAME(occ_params, model):
  custom_occ_selections = len(occ_params.constrained_group) + \
                          len(occ_params.individual) + \
                          len(occ_params.remove_selection)
  # Safeguard against using NCS constraints and custom occupancy selections
  if(custom_occ_selections>0 and model.ncs_constraints_present()):
    msg="NCS constraints and custom occupancy selections are not supported."
    raise Sorry(msg)