// Find the object
NamingContext root = NamingContextHelper.narrow(orb.resolve_initial_references("NameService"));
NameComponent nc = new NameComponent(nameId, nameKind);
NameComponent[] ncs = {nc};
org.omg.CORBA.Object corbaObject = root.resolve(ncs);
Class helperClass = ClassUtils.forName(helperClassName);
// Narrow the object reference
Method narrowMethod = helperClass.getMethod("narrow", new Class[] {org.omg.CORBA.Object.class});
Object targetObject = narrowMethod.invoke(null, new Object[] {corbaObject});