Source units = mdmUnits.getSource();
// Get the dimensions of the measure and the default hierarchies of
// the dimensions.
MdmPrimaryDimension mdmProdDim = getMdmPrimaryDimension("PRODUCT_AW");
MdmPrimaryDimension mdmTimeDim = getMdmPrimaryDimension("TIME_AW");
MdmPrimaryDimension mdmChanDim = getMdmPrimaryDimension("CHANNEL_AW");
MdmPrimaryDimension mdmCustDim = getMdmPrimaryDimension("CUSTOMER_AW");
MdmLevelHierarchy mdmProdDefLvlHier = (MdmLevelHierarchy)
mdmProdDim.getDefaultHierarchy();
MdmLevelHierarchy mdmTimeDefLvlHier = (MdmLevelHierarchy)
mdmTimeDim.getDefaultHierarchy();
MdmLevelHierarchy mdmChanDefLvlHier = (MdmLevelHierarchy)
mdmChanDim.getDefaultHierarchy();
MdmLevelHierarchy mdmCustDefLvlHier = (MdmLevelHierarchy)
mdmCustDim.getDefaultHierarchy();
// Get the Source objects for the hierarchies.
StringSource prodHier = (StringSource) mdmProdDefLvlHier.getSource();
StringSource timeHier = (StringSource) mdmTimeDefLvlHier.getSource();
StringSource chanHier = (StringSource) mdmChanDefLvlHier.getSource();
StringSource custHier = (StringSource) mdmCustDefLvlHier.getSource();
// Get the DataProvider.
ExpressDataProvider dp = getExpressDataProvider();
// Get the short description attribute for the dimensions and the
// Source objects for the attributes.
MdmAttribute mdmProdShortDescr =
mdmProdDim.getShortValueDescriptionAttribute();
Source prodShortDescr = mdmProdShortDescr.getSource();
MdmAttribute mdmCustShortDescr =
mdmCustDim.getShortValueDescriptionAttribute();
Source custShortDescr = mdmCustShortDescr.getSource();
MdmAttribute mdmTimeShortDescr =
mdmTimeDim.getShortValueDescriptionAttribute();
Source timeShortDescr = mdmTimeShortDescr.getSource();