class DefaultDetectorSource implements DetectorSource {

    @Override
    public DetectorContainer findDetector(UUID uuid) {
        notNull(uuid, "uuid can't be null");
        val document = client.findDetectorDocument(uuid);
        val detector = detectorFactory.buildDetector(document);
        if (detector == null) return null;
        val filters = DetectorDocumentParserUtil.parseFilters(document);
        return new DetectorContainer(detector, filters);
    }

}