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

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

}