Make a flexible version of getTriggerInfoList().