// create the bank
BankImpl bankImpl = new BankImpl();
LOG.info("Bank created");
// get object reference from the servant
org.omg.CORBA.Object ref = rootpoa.servant_to_reference(bankImpl);
Bank bankRef = BankHelper.narrow(ref);
LOG.info("Bank reference created");
// get the NameService
org.omg.CORBA.Object objRef = orb.resolve_initial_references("NameService");