class ReportJobSourceParametersXmlAdapter extends XmlAdapter<ClientReportParametersMapWrapper, Map<String, String[]>> {

    @Override
    public ClientReportParametersMapWrapper marshal(Map<String, String[]> v) throws Exception {
        HashMap<String, String[]> result = null;
        if (v != null && !v.isEmpty()) {
            result = new HashMap<String, String[]>();
            for (String currentKey : v.keySet()) {
                String[] currentValue = v.get(currentKey);
                result.put(currentKey, currentValue);
            }
        }
        return result != null ? new ClientReportParametersMapWrapper(result) : null;
    }

}