class IndividualsDetectorFactoryProvider implements DetectorFactoryProvider<IndividualsDetector> {

    @Override
    public IndividualsDetector buildDetector(DetectorDocument document) {
        notNull(document, "document can't be null");
        val paramsMap = document.getConfig().get("params");
        val params = objectMapper.convertValue(paramsMap, IndividualsDetectorParams.class);
        val trusted = document.isTrusted();
        return new IndividualsDetector(document.getUuid(), params, trusted, "individuals");
    }

}