Hi @test566 ,
Follow below steps
1.create the system user .
2 .creat the sling servlet in that create the session using service.
3.get the XF path using request object.
4.convert into the page object.
5 using bytecode array send to the request
6.using bytecode you con convert into string
Thanks,
Sa...