iiop-openjdk/src/main/java/org/wildfly/iiop/openjdk/naming/jndi/CNCtx.java
java.lang.Object callResolve(NameComponent[] path)
            throws NamingException {
        try {
            org.omg.CORBA.Object obj = _nc.resolve(path);
            try {
                NamingContext nc = NamingContextHelper.narrow(obj);
                if (nc != null) {
                    return new CNCtx(_orb, nc, _env, makeFullName(path));
                } else {
                    return obj;
                }
            } catch (org.omg.CORBA.SystemException e) {
                return obj;
            }
        } catch (Exception e) {
            throw org.wildfly.iiop.openjdk.naming.jndi.ExceptionMapper.mapException(e, this, path);
        }
    }
java.lang.Object callResolve(NameComponent[] path)
            throws NamingException {
        try {
            org.omg.CORBA.Object obj = _nc.resolve(path);
            try {
                NamingContext nc = NamingContextHelper.narrow(obj);
                if (nc != null) {
                    return new CNCtx(_orb, nc, _env, makeFullName(path));
                } else {
                    return obj;
                }
            } catch (org.omg.CORBA.SystemException e) {
                return obj;
            }
        } catch (Exception e) {
            throw org.wildfly.iiop.openjdk.naming.jndi.ExceptionMapper.mapException(e, this, path);
        }
    }
java . lang . Object callResolve ( NameComponent [ ] path ) throws NamingException { try { org . omg . CORBA . Object obj = _nc . resolve ( path ) ; try { NamingContext nc = NamingContextHelper . narrow ( obj ) ; if ( nc != null ) { return new CNCtx ( _orb , nc , _env , makeFullName ( path ) ) ; } else { return obj ; } } catch ( org . omg . CORBA . SystemException e ) { return obj ; } } catch ( Exception e ) { throw org . wildfly . iiop . openjdk . naming . jndi . ExceptionMapper . mapException ( e , this , path ) ; } }
Does the job of calling the COS Naming API,
resolve, and performs the exception mapping. If the resolved
object is a COS Naming Context (sub-context), then this function
returns a new JNDI naming context object.

@param path the NameComponent[] object.
@return Resolved object returned by the COS Name Server.
@throws NotFound      No objects under the name.
@throws org.omg.CosNaming.NamingContextPackage.CannotProceed Unable to obtain a continuation context
@throws org.omg.CosNaming.NamingContextPackage.InvalidName   Name not understood.
Does the job of calling the COS Naming API resolve and performs the exception mapping . If the resolved object is a COS Naming Context ( sub - context ) then this function returns a new JNDI naming context object .