if ( !mode.derefInSearching() )
if ( !mode.isDerefInSearching() )
    public boolean assertOneLevelScope( final ScopeNode node, final BigInteger id ) throws NamingException    {        DerefAliasesEnum mode = node.getDerefAliases();        Object baseId = db.getEntryId( node.getBaseDn() );        Index idx = db.getHierarchyIndex();        boolean isChild = idx.hasValue( baseId, id );        /*         * The candidate id could be any entry in the db.  If search          * dereferencing is not enabled then we return the results of the child          * test.          */        if ( !mode.derefInSearching() )        {            return isChild;        }        /*         * From here down alias dereferencing is enabled.  We determine if the         * candidate id is an alias, if so we reject it since aliases should         * not be returned.         */        idx = db.getAliasIndex();        if ( null != idx.reverseLookup( id ) )        {            return false;        }        /*         * The candidate is NOT an alias at this point.  So if it is a child we         * just return it since it is in normal one level scope.         */        if ( isChild )        {            return true;        }        /*         * At this point the candidate is not a child and it is not an alias.         * We need to check if the candidate is in extended one level scope by          * performing a lookup on the one level alias index.  This index stores         * a tuple mapping the baseId to the id of objects brought into the          * one level scope of the base by an alias: ( baseId, aliasedObjId )         * If the candidate id is an object brought into one level scope then          * the lookup returns true accepting the candidate.  Otherwise the          * candidate is rejected with a false return because it is not in scope.         */        idx = db.getOneAliasIndex();        return idx.hasValue( baseId, id );    }