public void testOrb() throws Exception {
if (nameService == null) {
return;
}
NamingContextExt ctx = NamingContextExtHelper.narrow(orb.resolve_initial_references("NameService"));
NamingContextExt rootNamingContext = ctx;
NameComponent name[] = ctx.to_name("foo/bar/baz");
for (int i = 0; i < name.length; i++) {
NameComponent nameComponent = name[i];
ctx = NamingContextExtHelper.narrow(ctx.bind_new_context(new NameComponent[] {nameComponent}));
}