class DetectorUtil {

    public static DetectorSource buildDetectorSource(Config config) {
        val uriTemplate = config.getString(CK_MODEL_SERVICE_URI_TEMPLATE);
        val client = new DetectorClient(new HttpClientWrapper(), uriTemplate, new ObjectMapper());
        val registry = new DetectorFactory();
        return new DefaultDetectorSource(client, registry);
    }

}