During the recent overhaul, some code was left retrieving cases the old way. Fixes #48897 Signed-off-by: Anas Nashif <anas.nashif@intel.com>