Sample code to use Moxtra APIs using Java