class DetectorServiceImpl implements DetectorService {

    @Override
    public void updateDetectorLastUsed(String uuid) {
        notNull(uuid, "uuid can't be null");
        MDC.put("DetectorUuid", uuid);

        Detector detectorToBeUpdated = repository.findByUuid(uuid);
        detectorToBeUpdated.setMeta(DetectorDataUtil.buildLastUsedDetectorMeta(detectorToBeUpdated));
        RequestValidator.validateDetector(detectorToBeUpdated);
        repository.save(detectorToBeUpdated);
    }

}