ActionContext context = ActionContext.getContext();
Map<String, Object> session = context.getSession();
String local = (String) session.get("locale");
list = new ArrayList<ChartVO>();
ChartVO chartVO = null;
LeadSource leadSource = null;
while (it.hasNext()) {
Object[] row = (Object[]) it.next();
leadSource = (LeadSource) row[0];
String IndustryLabel = "";
if (leadSource != null) {
if ("zh_CN".equals(local)) {
IndustryLabel = leadSource.getLabel_zh_CN();
} else {
IndustryLabel = leadSource.getLabel_en_US();
}
}
Long number = (Long) row[1];
chartVO = new ChartVO();
chartVO.setLabel(IndustryLabel);