@Override public String getReportTypeForAjaxCall(String reportClassCode) throws Exception { Collection reportTypes = getReportTypesUsingReportClassCode(reportClassCode); String attributeNames = ""; for (Object aReportCode : reportTypes) { Report aReport = businessObjectService.findBySinglePrimaryKey(Report.class, aReportCode); if (aReport != null) { attributeNames += "," + aReportCode + ";" + aReport.getDescription(); } } return attributeNames; }