class ReportParametersUtils {

    public static Map<String, String[]> getValueMapFromInputControlStates(List<InputControlState> states) {
        Map<String, String[]> valueMap = new HashMap<String, String[]>(states.size());
        for (InputControlState state : states) {
            if (state != null)
                valueMap.put(state.getId(), getValueFromInputControlState(state));
        }

        return valueMap;
    }

}