private javax.naming.Binding mapBinding(org.omg.CosNaming.Binding bndg)
            throws NamingException {
        java.lang.Object obj = _ctx.callResolve(bndg.binding_name);

        Name cname = org.wildfly.iiop.openjdk.naming.jndi.CNNameParser.cosNameToName(bndg.binding_name);

        try {
            obj = NamingManager.getObjectInstance(obj, cname, _ctx, _env);
        } catch (NamingException e) {
            throw e;
        } catch (Exception e) {
            NamingException ne = IIOPLogger.ROOT_LOGGER.errorGeneratingObjectViaFactory();
            ne.setRootCause(e);
            throw ne;
        }

        // Use cname.toString() instead of bindingName because the name
        // in the binding should be a composite name
        String cnameStr = cname.toString();
        javax.naming.Binding jbndg = new javax.naming.Binding(cnameStr, obj);

        NameComponent[] comps = _ctx.makeFullName(bndg.binding_name);
        String fullName = org.wildfly.iiop.openjdk.naming.jndi.CNNameParser.cosNameToInsString(comps);
        jbndg.setNameInNamespace(fullName);
        return jbndg;
    }
private javax.naming.Binding mapBinding(org.omg.CosNaming.Binding bndg)
            throws NamingException {
        java.lang.Object obj = _ctx.callResolve(bndg.binding_name);

        Name cname = org.wildfly.iiop.openjdk.naming.jndi.CNNameParser.cosNameToName(bndg.binding_name);

        try {
            obj = NamingManager.getObjectInstance(obj, cname, _ctx, _env);
        } catch (NamingException e) {
            throw e;
        } catch (Exception e) {
            NamingException ne = IIOPLogger.ROOT_LOGGER.errorGeneratingObjectViaFactory();
            ne.setRootCause(e);
            throw ne;
        }

        
        
        String cnameStr = cname.toString();
        javax.naming.Binding jbndg = new javax.naming.Binding(cnameStr, obj);

        NameComponent[] comps = _ctx.makeFullName(bndg.binding_name);
        String fullName = org.wildfly.iiop.openjdk.naming.jndi.CNNameParser.cosNameToInsString(comps);
        jbndg.setNameInNamespace(fullName);
        return jbndg;
    }
private javax . naming . Binding mapBinding ( org . omg . CosNaming . Binding bndg ) throws NamingException { java . lang . Object obj = _ctx . callResolve ( bndg . binding_name ) ; Name cname = org . wildfly . iiop . openjdk . naming . jndi . CNNameParser . cosNameToName ( bndg . binding_name ) ; try { obj = NamingManager . getObjectInstance ( obj , cname , _ctx , _env ) ; } catch ( NamingException e ) { throw e ; } catch ( Exception e ) { NamingException ne = IIOPLogger . ROOT_LOGGER . errorGeneratingObjectViaFactory ( ) ; ne . setRootCause ( e ) ; throw ne ; } // Use cname.toString() instead of bindingName because the name // in the binding should be a composite name String cnameStr = cname . toString ( ) ; javax . naming . Binding jbndg = new javax . naming . Binding ( cnameStr , obj ) ; NameComponent [ ] comps = _ctx . makeFullName ( bndg . binding_name ) ; String fullName = org . wildfly . iiop . openjdk . naming . jndi . CNNameParser . cosNameToInsString ( comps ) ; jbndg . setNameInNamespace ( fullName ) ; return jbndg ; }
Constructs a JNDI Binding object from the COS Naming binding
object.

@throws org.omg.CosNaming.NamingContextPackage.CannotProceed   Unable to obtain a continuation context
@throws org.omg.CosNaming.NamingContextPackage.InvalidNameCNCtx     Name not understood.
@throws NamingException One of the above.
Constructs a JNDI Binding object from the COS Naming binding object .