// Set ORB and TSIdentification: needed for app clients,
// standalone clients.
interceptor.setOrb(theORB);
try {
DefaultTransactionService jts = new DefaultTransactionService();
jts.identify_ORB(theORB, tsIdent, jtsProperties ) ;
interceptor.setTSIdentification(tsIdent);
// V2-XXX should jts.get_current() be called everytime
// resolve_initial_references is called ??
org.omg.CosTransactions.Current transactionCurrent = jts.get_current();
theORB.getLocalResolver().register( ORBConstants.TRANSACTION_CURRENT_NAME,
NullaryFunction.Factory.makeConstant(
(org.omg.CORBA.Object)transactionCurrent));