package com.github.dockerjava.core.util;

import java.util.List;
import java.util.Map;

import javax.ws.rs.core.MediaType;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider;

/**
 * JSON Encoder for docker filters.
 *
 * @author Carlos Sanchez <carlos@apache.org>
 */
public class FiltersEncoder {

    private FiltersEncoder() {
    }

    private static final ObjectMapper MAPPER = new JacksonJaxbJsonProvider().locateMapper(Map.class, MediaType.APPLICATION_JSON_TYPE);

    public static String jsonEncode(Map<String, List<String>> mapStringListString) {
        try {
            return MAPPER.writeValueAsString(mapStringListString);
        } catch (JsonProcessingException e) {
            throw new RuntimeException(e);
        }
    }

}

@@ -85,44 +85,8 @@
 p;%0A%0A
-import javax.ws.rs.core.MediaType;%0A%0A
 impo
@@ -195,73 +195,8 @@
 per;
-%0Aimport com.fasterxml.jackson.jaxrs.json.JacksonJaxbJsonProvider;
 %0A%0A/*
@@ -410,89 +410,21 @@
 new 
-JacksonJaxbJsonProvider().locateMapper(Map.class, MediaType.APPLICATION_JSON_TYPE
+ObjectMapper(
 );%0A%0A

Remove `JacksonJaxbJsonProvider` from `FiltersEncoder`