private String getCoPIsListCSVContent(CollaborationData coPIData) { StringBuilder csvFileContent = new StringBuilder(); csvFileContent.append("Co-investigator, Count\n"); for (Collaborator currNode : coPIData.getCollaborators()) { /* * We have already printed the Ego Node info. * */ if (currNode != coPIData.getEgoCollaborator()) { csvFileContent.append(StringEscapeUtils.escapeCsv(currNode.getCollaboratorName())); csvFileContent.append(","); csvFileContent.append(currNode.getNumOfActivities()); csvFileContent.append("\n"); } } return csvFileContent.toString(); }