NamingEnumeration list = nexus.list( name );
NamingEnumeration list = nextInterceptor.list( name );
    public void delete( NextInterceptor nextInterceptor, Name name ) throws NamingException    {        // check if entry to delete exists        String msg = "Attempt to delete non-existant entry: ";        assertHasEntry( msg, name );        // check if entry to delete has children (only leaves can be deleted)        boolean hasChildren = false;        NamingEnumeration list = nexus.list( name );        if ( list.hasMore() )        {            hasChildren = true;        }        list.close();        if ( hasChildren )        {            LdapContextNotEmptyException e = new LdapContextNotEmptyException();            e.setResolvedName( name );            throw e;        }        nextInterceptor.delete( name );    }