if ( base.size() == 0 ) {  if ( filter instanceof PresenceNode && searchCtls.getSearchScope() == SearchControls.OBJECT_SCOPE && ( ( PresenceNode ) filter ).getAttribute().equalsIgnoreCase( "objectclass" ) ) { Attributes attrs = getRootDSE(); SearchResult result = new SearchResult( "", null, attrs, false ); return new SingletonEnumeration( result ); }  throw new LdapNameNotFoundException(); }
    public NamingEnumeration search( Name base, Map env, ExprNode filter,                                     SearchControls searchCtls )        throws NamingException    {        ContextPartition backend = getBackend( base );        return backend.search( base, env, filter, searchCtls );    }