235236237238239240241242243
user = userRepository.findByUuid(userIdentifier); } else { user = userRepository.findByEmailAddress(userIdentifier); } if (user == null) { throw new UserNotFoundException(); } return user; }