I could not find a way to make a RTL paragraph in Docx using XWPFDocument (Apache POI) in my Java program. Here\'s my code that generates the XWPFDocument.
A workaround that I found till now is using a template document.
Using this method, you make an empty document that "Normal" style in it, is configured to be RTL. This way, everything in your document will be RTL.
XWPFDocument document = new XWPFDocument(AbstractWordView.class.getClassLoader().getResourceAsStream("empty.docx"));