/** * decode PieSectionEntity into key-value pair of Area's componentScope. * @param area the Area where the final attribute is set * @param info the PieSectionEntity to be decoded. */ private void decodePieInfo(Area area, PieSectionEntity info) { if (info == null) { return; } PieDataset dataset = info.getDataset(); Comparable category = info.getSectionKey(); area.setAttribute("category", category); area.setAttribute("value", dataset.getValue(category)); }