poa.the_POAManager().activate();
// Create a SampleImpl and bind it to the POA
Sample sample = new SampleImpl();
Tie tie = javax.rmi.CORBA.Util.getTie(sample);
byte[] id = poa.activate_object((Servant) tie);
org.omg.CORBA.Object obj = poa.create_reference_with_id(id, ((Servant)tie)._all_interfaces(poa, id)[0]);
// Write a IOR to a file so the client can obtain a reference to the Sample