protected void flushSpi() throws BackingStoreException
{
if ( ctx == null )
{
throw new BackingStoreException( "Ldap context not available for " + super.absolutePath() );
}
if ( changes.isEmpty() )
{
return;
}
try
{
ctx.modifyAttributes( "", ( ModificationItem[] ) changes.toArray( EMPTY_MODS ) );
}
catch ( NamingException e )
{
throw new BackingStoreException( e );
}
changes.clear();
keyToChange.clear();