code: public List<Reference> getReferences(boolean sorted) {
          final List<Reference> sortedRefs = new ArrayList<>(this.references);
          if (sorted) {
              Collections.sort(sortedRefs);
          }
          return sortedRefs;
      }
docs: Returns the list of references. This is primarily used within the
  generated reports.
  
  @param sorted whether the returned list should be sorted
  @return the list of references