clonedDn.remove( 0 );
clonedDn.remove( clonedDn.size() - 1 );
    private ContextPartition getBackend( Name dn ) throws NamingException    {        Name clonedDn = ( Name ) dn.clone();        while ( clonedDn.size() > 0 )        {            if ( backends.containsKey( clonedDn.toString() ) )            {                return ( ContextPartition ) backends.get( clonedDn.toString() );            }                        clonedDn.remove( 0 );        }                throw new NameNotFoundException();    }