orbThread.start();
// create peter and write his IOR
UP_Client server = new UP_Client();
securePOA.activate_object_with_id("SecurePeter".getBytes(), server);
Peter peter = PeterHelper.narrow(rootPOA.servant_to_reference(server));
org.omg.CORBA.Object demo = securePOA.servant_to_reference(server);
PrintWriter pw = new PrintWriter(new FileWriter("peter.ior"));
pw.println(orb.object_to_string(demo));
pw.flush();
pw.close();