iiop-openjdk/src/main/java/org/wildfly/iiop/openjdk/naming/jndi/CNCtx.java
private void callUnbind(NameComponent[] path) throws NamingException {
        if (_nc == null)
            throw IIOPLogger.ROOT_LOGGER.notANamingContext(path.toString());
        try {
            _nc.unbind(path);
        } catch (NotFound e) {
            // If leaf is the one missing, return success
            // as per JNDI spec

            if (leafNotFound(e, path[path.length - 1])) {
                // do nothing
            } else {
                throw org.wildfly.iiop.openjdk.naming.jndi.ExceptionMapper.mapException(e, this, path);
            }
        } catch (Exception e) {
            throw org.wildfly.iiop.openjdk.naming.jndi.ExceptionMapper.mapException(e, this, path);
        }
    }
private void callUnbind(NameComponent[] path) throws NamingException {
        if (_nc == null)
            throw IIOPLogger.ROOT_LOGGER.notANamingContext(path.toString());
        try {
            _nc.unbind(path);
        } catch (NotFound e) {
            // If leaf is the one missing, return success
            // as per JNDI spec

            if (leafNotFound(e, path[path.length - 1])) {
                // do nothing
            } else {
                throw org.wildfly.iiop.openjdk.naming.jndi.ExceptionMapper.mapException(e, this, path);
            }
        } catch (Exception e) {
            throw org.wildfly.iiop.openjdk.naming.jndi.ExceptionMapper.mapException(e, this, path);
        }
    }
Calls the unbind api of COS Naming and uses the exception mapper
class  to map the exceptions

@param path NameComponent[] object
@throws NotFound      No objects under the name. If leaf
is not found, that's OK according to the JNDI spec
@throws org.omg.CosNaming.NamingContextPackage.CannotProceed Unable to obtain a continuation context
@throws org.omg.CosNaming.NamingContextPackage.InvalidName   Name not understood.