We have an Excel workbook which is in protected mode. When an Excel *.xlsx file is opened it prompts to click on Enable Editing. How do you by pass Enable Editing in Java?

This is the code we started to write in java but can't figure it out.

NOTE: using Apachi poi-5.2.3

import java.io.File;
import java.io.IOException;
import java.util.Iterator;
import java.io.FileOutputStream;
import java.io.IOException;
import org.apache.poi.xssf.usermodel.*;

XSSFWorkbook workbook = new XSSFWorkbook("C:/test.xlsx");

// Unprotect workbook

workbook.unprotect("12345");

// Saving unprotect file
workbook.save("C:/test2.xlsx");


I'm new with java and not sure how to accomplish this using xssf model.