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