org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService");
NamingContextExt ncRef = NamingContextExtHelper.narrow(objRef);
LOG.info("NamingContext created");
// bind the Object Reference in Naming
NameComponent path[] = ncRef.to_name(BANKNAME);
ncRef.rebind(path, bankRef);
LOG.info("Bank reference bound");
// wait for invocations from clients
LOG.info("BankServer ready and waiting ...");