class AnalyticsUtils {

    public static Map<String, DimensionalItemObject> getDimensionalItemObjectMap( DataQueryParams params )
    {
        List<DimensionalObject> dimensions = params.getDimensionsAndFilters();

        Map<String, DimensionalItemObject> map = new HashMap<>();

        for ( DimensionalObject dimension : dimensions )
        {
            dimension.getItems().stream().forEach( i -> map.put( i.getDimensionItem(), i ) );
        }

        return map;
    }

}