class GraphFileExporterBuilderDecorator implements GraphFileExporterBuilder {

    private final GraphFileExporterBuilder instance;
    private final ExporterSpreadsheet.ExportTable initialSelectedTable;

    public GraphFileExporterBuilderDecorator(GraphFileExporterBuilder instance,
                                             ExporterSpreadsheet.ExportTable initialSelectedTable) {
        this.instance = instance;
        this.initialSelectedTable = initialSelectedTable;
    }

    @Override
    public GraphExporter buildExporter() {<FILL_FUNCTION_BODY>}

    @Override
    public FileType[] getFileTypes() {
        return instance.getFileTypes();
    }

    @Override
    public String getName() {
        return instance.getName();
    }
}

        GraphExporter exporter = instance.buildExporter();

        if (exporter instanceof ExporterSpreadsheet) {
            ((ExporterSpreadsheet) exporter).setTableToExport(initialSelectedTable);
        }

        return exporter;
    
<no_super_class>