Sample code for IndyXtern application