Adding method to convert JSON -> XML and call addRXTResource