class DetectorDocumentParserUtil {

    public static List<DetectionFilter> parseFilters(DetectorDocument document) {
        final ObjectMapper objectMapper = new ObjectMapper();
        Object filters = document.getConfig().get("filters");
        return (filters == null) ? Collections.emptyList() :
                Arrays.asList(objectMapper.convertValue(filters, DetectionFilter[].class));
    }

}