val.append( ']' );
val.append( "]" );
    public Attributes getIndices( BigInteger id ) throws  NamingException    {        Attributes attributes = new LockableAttributesImpl();        // Get the distinguishedName to id mapping        attributes.put( "_nDn", getEntryDn( id ) );        attributes.put( "_upDn", getEntryUpdn( id ) );        attributes.put( "_parent", getParentId( id ) );        // Get all standard index attribute to value mappings        Iterator idxList = this.indices.values().iterator();        while ( idxList.hasNext() )        {            Index index = ( Index ) idxList.next();            NamingEnumeration list = index.listReverseIndices( id );            while ( list.hasMore() )             {                IndexRecord rec = ( IndexRecord ) list.next();                Object val = rec.getIndexKey();                attributes.put( index.getAttribute().getName(), val );            }        }        // Get all existance mappings for this id creating a special key        // that looks like so 'existance[attribute]' and the value is set to id        NamingEnumeration list = existanceIdx.listReverseIndices( id );        StringBuffer val = new StringBuffer();        while ( list.hasMore() )         {            IndexRecord rec = ( IndexRecord ) list.next();            val.append( "_existance[" );             val.append( rec.getIndexKey() );            val.append( ']' );            attributes.put( val.toString(), rec.getEntryId() );            val.setLength( 0 );        }        // Get all parent child mappings for this entry as the parent using the        // key 'child' with many entries following it.        list = heirarchyIdx.listIndices( id );        while ( list.hasMore() )         {            IndexRecord rec = ( IndexRecord ) list.next();            attributes.put( "_child", rec.getEntryId() );        }        return attributes;    }