class DetectorMapperCache {

    public List<Detector> get(String key) {
        String detectorsString = cache.getIfPresent(key);
        if (detectorsString == null) {
            return Collections.emptyList();
        } else {
            return CacheUtil.buildDetectors(detectorsString);
        }
    }

    public  DetectorMapperCache(MetricRegistry metricRegistry);

}