private String getFileName(CourseComponent component) {
   StringBuilder sb = new StringBuilder();
   sb.append(component.getPresentationId().replaceAll(" ", "_"));
   if (null != component.getWhen()) {
     sb.append("_");
     sb.append(component.getWhen().replaceAll(" ", "_"));
   }
   return sb.toString();
 }
 private String startsText(CourseComponent component) {
   if (null != component.getStartsText() && !component.getStartsText().isEmpty()) {
     return component.getStartsText();
   }
   if (null != component.getStarts()) {
     return new SimpleDateFormat("EEE d MMM yyyy").format(component.getStarts());
   }
   return "";
 }