code: protected String [] getHeaderRow(String masterlanguage, String[] languages) {
      List<String> headerRow = new ArrayList<>();
      headerRow.add(AbstractFile.KEY_HEADER);
      headerRow.add(AbstractFile.STATUS_HEADER);
      if (!ArrayUtils.contains(languages, masterlanguage)) {
        headerRow.add(AbstractFile.MASTER_HEADER + " (" + masterlanguage + ")");
      }
      for (String language : languages) {
        headerRow.add(AbstractFile.VALUE_HEADER + " (" + language + ")");
      }
      headerRow.add(AbstractFile.CONTEXT_HEADER);
      return headerRow.toArray(new String[headerRow.size()]);
    }
docs: Constructs the header row for a spreadsheet/table based file.
  @param masterlanguage the masterlanguage
  @param languages the languages to export
  @return the header row.