try {
nc = NamingContextExtHelper.narrow(theOrb
.resolve_initial_references("NameService"));
System.out.println("resolved initial reference to NameService ...");
nc.rebind(nc.to_name("admin"), thePoa.servant_to_reference(admins));
nc.rebind(nc.to_name("customer"),
thePoa.servant_to_reference(customers));
System.out.println("resolved references to NameService");
} catch (InvalidName e) {
e.printStackTrace(System.err);