class ReportParametersHelper {

    public static Map<String, String[]> toRawParameters(List<ReportParameter> reportParameters){
        Map<String, String[]> rawParameters = null;
        if(reportParameters != null){
            rawParameters = new HashMap<String, String[]>();
            for(ReportParameter currentParameter : reportParameters){
                rawParameters.put(currentParameter.getName(), currentParameter.getValues().toArray(new String[currentParameter.getValues().size()]));
            }
        }
        return rawParameters;
    }

}