private String getCoPINamesAsString(Set<Collaborator> coInvestigators) {

    StringBuilder coPIsMerged = new StringBuilder();

    String coPISeparator = ";";
    for (Collaborator currentCoPI : coInvestigators) {
      coPIsMerged.append(currentCoPI.getCollaboratorName() + coPISeparator);
    }

    return StringUtils.removeEnd(coPIsMerged.toString(), coPISeparator);
  }
  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();
  }