class ConstantThresholdDetectorFactoryProvider implements DetectorFactoryProvider<ConstantThresholdDetector> {

    @Override
    public ConstantThresholdDetector buildDetector(DetectorDocument document) {
        notNull(document, "document can't be null");
        val params = parseParams(document);
        return new ConstantThresholdDetector(document.getUuid(), params, document.isTrusted());
    }

}