@Override
    public void currentSheet(WriteSheet writeSheet, WriteTypeEnum writeType) {
        if (writeSheet == null) {
            throw new IllegalArgumentException("Sheet argument cannot be null");
        }
        if (selectSheetFromCache(writeSheet)) {
            return;
        }

        initCurrentSheetHolder(writeSheet);

        // Supplementary execution for workbook handlers.
        WorkbookWriteHandlerContext workbookWriteHandlerContext = WriteHandlerUtils.createWorkbookWriteHandlerContext(
            this);
        WriteHandlerUtils.beforeWorkbookCreate(workbookWriteHandlerContext, true);
        WriteHandlerUtils.afterWorkbookCreate(workbookWriteHandlerContext, true);

        // Initialize the current sheet.
        initSheet(writeType);
    }
Sets the current sheet for writing.

@param writeSheet The sheet configuration for writing.
@param writeType  The type of write operation.
fastexcel-core/src/main/java/cn/idev/excel/context/WriteContextImpl.java