class DefaultDetectorSource implements DetectorSource {

    @Override
    public List<UUID> findUpdatedDetectors(long timePeriod) {
        isTrue(timePeriod > 0, "Required: timePeriod > 0");
        return client
                .findUpdatedDetectorDocuments(timePeriod)
                .stream()
                .map(document -> document.getUuid())
                .collect(Collectors.toList());
    }

}