consider moving the exception into the repository and call it directly. Also `getSingleResult()` will already throw an exception if no result was returned.