createNotFoundException just returns an exception so it has to be threw.