try
{
ORBInterface.initORB(args, null);
OAInterface.initOA();
TransactionFactory transactionFactory = null;
String[] transactionFactoryParams = new String[1];
transactionFactoryParams[0] = ORBServices.otsKind;
transactionFactory = TransactionFactoryHelper.narrow(ORBServices.getService(ORBServices.transactionService, transactionFactoryParams));
int numberOfControls = Integer.parseInt(args[args.length - 1]);
boolean correct = true;
Control[] controls = new Control[numberOfControls];
for (int index = 0; correct && (index < controls.length); index++)
{
controls[index] = transactionFactory.create(0);
correct = correct && (controls[index].get_coordinator().get_status() == Status.StatusActive);
}
for (int index = 0; correct && (index < controls.length); index++)