class ReleaseExportFile implements ExcelFile {

    @Override
    public Workbook createWorkbook() {
        ExcelSheet releaseSheet = new OCDSObjectExcelSheet(this.workbook, Release.class);

        // don't do anything if the list of releases is empty, just display the error message
        if (releases != null && !releases.isEmpty()) {
            releaseSheet.writeSheet(new ArrayList<>(releases));
        }

        return workbook;
    }

    public  ReleaseExportFile(final List<Release> releases);

}