104105106107108109110111
User user = userRepository.findByUsername(username); if(user != null) { return user; } else { throw new NotFoundException(key.unfMsg, key.unfCode); } }
42434445464748
T result = baseJpaRepository.findById(id); if (result != null) return result; else throw new NotFoundException(nfEntityMsg, nfEntityCode); }