if ( dn.equals( suffix ) )
if ( dn.equals( normSuffix ) )
    public void add( String updn, Name dn, Attributes entry ) throws NamingException    {        BigInteger id;        BigInteger parentId = null;        id = master.getNextId();        //        // Suffix entry cannot have a parent since it is the root so it is         // capped off using the zero value which no entry can have since         // entry sequences start at 1.        //                if ( dn.equals( suffix ) )        {            parentId = BigInteger.ZERO;        }        else         {            parentId = getEntryId( dn.getSuffix( 1 ).toString() );        }        // don't keep going if we cannot find the parent Id        if ( parentId == null )        {            throw new LdapNameNotFoundException( "Id for parent '" + dn.getSuffix( 1 ).toString() + "' not found!" );        }        Attribute objectClass = entry.get( "objectClass" );        if ( objectClass == null )        {            String msg = "Entry " + updn + " contains no objectClass attribute: " + entry;            throw new LdapSchemaViolationException( msg, ResultCodeEnum.OBJECTCLASSVIOLATION );        }        // Start adding the system indices        // Why bother doing a lookup if this is not an alias.        if ( entry.get( "objectClass" ).contains( ALIAS_OBJECT ) )        {            addAliasIndices( id, dn, ( String ) entry.get( ALIAS_ATTRIBUTE ).get() );        }                ndnIdx.add( dn.toString(), id );        updnIdx.add( updn, id );        heirarchyIdx.add( parentId, id );                // Now work on the user defined indices        NamingEnumeration list = entry.getIDs();        while ( list.hasMore() )         {            String attribute = ( String ) list.next();                        if ( hasUserIndexOn( attribute ) )             {                Index idx = getUserIndex( attribute );                NamingEnumeration values = entry.get( attribute ).getAll();                                while ( values.hasMore() )                 {                    idx.add( values.next(), id );                }                // Adds only those attributes that are indexed                existanceIdx.add( attribute.toLowerCase(), id );            }        }        master.put( entry, id );    }