XmlUtils.marshaltoString tells me your code creates XML like:
Using xml Syntax Highlighting
<w:p>
<w:pPr>
<w:adjustRightInd/>
<w:spacing w:after="0"/>
<w:textAlignment w:val="right"/>
</w:pPr>
<w:r>
<w:rPr/>
<w:t>hello
</w:t>
</w:r>
</w:p>
Parsed in 0.001 seconds, using
GeSHi 1.0.8.4
What you want in your w:pPr is <w:jc w:val="right"/>
The general approach is to use Word (or possibly LibreOffice/OpenOffice) to create the document content you are aiming for, the unzip it and look at the XML to see what you need to create.
After that, you can easily create the content using the object factory (as you have done), or by unmarshalling a string of XML.