iiop-openjdk/src/main/java/org/wildfly/iiop/openjdk/naming/jndi/CNCtx.java
private void callDestroy(NamingContext nc)
            throws NamingException {
        if (_nc == null)
            throw IIOPLogger.ROOT_LOGGER.notANamingContext(nc.toString());
        try {
            nc.destroy();
        } catch (Exception e) {
            throw org.wildfly.iiop.openjdk.naming.jndi.ExceptionMapper.mapException(e, this, null);
        }
    }
private void callDestroy(NamingContext nc)
            throws NamingException {
        if (_nc == null)
            throw IIOPLogger.ROOT_LOGGER.notANamingContext(nc.toString());
        try {
            nc.destroy();
        } catch (Exception e) {
            throw org.wildfly.iiop.openjdk.naming.jndi.ExceptionMapper.mapException(e, this, null);
        }
    }
private void callDestroy ( NamingContext nc ) throws NamingException { if ( _nc == null ) throw IIOPLogger . ROOT_LOGGER . notANamingContext ( nc . toString ( ) ) ; try { nc . destroy ( ) ; } catch ( Exception e ) { throw org . wildfly . iiop . openjdk . naming . jndi . ExceptionMapper . mapException ( e , this , null ) ; } }
Calls the destroy on the COS Naming Server

@param nc The NamingContext object to use.
@throws org.omg.CosNaming.NamingContextPackage.NotEmpty when the context is not empty and cannot be destroyed.
Calls the destroy on the COS Naming Server