class DetectorServiceImpl implements DetectorService {

    @Override
    public Detector findByUuid(String uuid) {
        Detector detector = repository.findByUuid(uuid);
        if (detector == null) {
            throw new RecordNotFoundException("Invalid UUID: " + uuid);
        }
        return detector;
    }

}