class AnalyticsUtils {

    public static Map<String, String> getCocNameMap( DataQueryParams params )
    {
        Map<String, String> metaData = new HashMap<>();

        List<DimensionalItemObject> des = params.getAllDataElements();

        if ( !des.isEmpty() )
        {
            for ( DimensionalItemObject de : des )
            {
                DataElement dataElement = (DataElement) de;

                for ( CategoryOptionCombo coc : dataElement.getCategoryOptionCombos() )
                {
                    metaData.put( coc.getUid(), coc.getName() );
                }
            }
        }

        return metaData;
    }

}