add header/footer at a specific page

Hi everyone! Does anyone knows how to add a footer/header at a specific page number? (lets say i have a document with 4 pages and i want the 3rd page to have a specific header). I am trying to do this in Java.
forums
https://www.docx4java.org/forums/
https://www.docx4java.org/forums/docx-java-f6/add-header-footer-at-a-specific-page-t2075.html