Here is the code:
P para = factory.createP(); R run = factory.createR(); Text text = factory.createText(); text.setValue( \" abc