/**
* Retrieve ORB and OA references, intialise them
* and then set the OTSManager ORB and OA properties
*/
ORB orb = ORB.getInstance(PerformanceFramework.ORB_INSTANCE_NAME);
OA oa = OA.getRootOA(orb);
orb.initORB(args, null);
oa.initOA(args);
SingleResourceRegistration obj1 = new SingleResourceRegistration();
oa.objectIsReady(obj1);
PerfTestInterface objRef1 = PerfTestInterfaceHelper.narrow(oa.corbaReference(obj1));
registerService(serviceName, orb.orb().object_to_string(objRef1) );
SingleSubtranAwareResourceRegistration obj2 = new SingleSubtranAwareResourceRegistration();
oa.objectIsReady(obj2);
PerfTestInterface objRef2 = PerfTestInterfaceHelper.narrow(oa.corbaReference(obj2));
registerService(serviceName2, orb.orb().object_to_string(objRef2) );
System.out.println("Object reference written to file");