tuples.add( item.toTuples() );
tuples.addAll( item.toTuples() );
    private void addSubentryAciTuples( DirectoryPartitionNexusProxy proxy, Collection tuples,                                       Name dn, Attributes entry ) throws NamingException    {        // only perform this for subentries        if ( ! entry.get("objectClass").contains("subentry") )        {            return;        }        // get the parent or administrative entry for this subentry since it        // will contain the subentryACI attributes that effect subentries        Name parentDn = ( Name ) dn.clone();        parentDn.remove( dn.size() - 1 );        Attributes administrativeEntry = proxy.lookup( parentDn, DirectoryPartitionNexusProxy.LOOKUP_BYPASS );        Attribute subentryAci = administrativeEntry.get( SUBENTRYACI_ATTR );        if ( subentryAci == null )        {            return;        }        for ( int ii = 0; ii < subentryAci.size(); ii++ )        {            String aciString = ( String ) subentryAci.get( ii );            ACIItem item;            try            {                item = aciParser.parse( aciString );            }            catch ( ParseException e )            {                String msg = "failed to parse subentryACI: " + aciString ;                log.error( msg, e );                throw new LdapNamingException( msg, ResultCodeEnum.OPERATIONSERROR );            }            tuples.add( item.toTuples() );        }    }