Sample code in BTTSnippet

About this task

BTTSnippet uses BTTHelp class to get Context from BTTSystemData parameter, and after the Context is updated, BTTSnippet restores it back to BTTSystemData.
Below is the sample code in BTTSnippet:
BTTHelper helper=new BTTHelper();
helper.initBTT(BTTSystemData);
//user code begin
Context ctx = helper.getContext();
FormatElement fmt = helper.getFormat("accountTransferSendFmt");
Journal journal=(Journal)helper.getService("Journal");
....
//user code end
helper.endupBTT(BTTSystemData);