* do nothing as well.
*/
if ( ( mod.get() == null ) && ( previous == null ) )
{
reverseModification = new DefaultModification( ModificationOperation.REPLACE_ATTRIBUTE,
new DefaultEntryAttribute( mod.getId() ) );
reverseModifications.add( 0, reverseModification );
continue;
}
if ( mod.get() == null )
{
reverseModification = new DefaultModification( ModificationOperation.REPLACE_ATTRIBUTE,
previous );
reverseModifications.add( 0, reverseModification );
continue;
}
if ( previous == null )
{
EntryAttribute emptyAttribute = new DefaultEntryAttribute( mod.getId() );
reverseModification = new DefaultModification( ModificationOperation.REPLACE_ATTRIBUTE,
emptyAttribute );
reverseModifications.add( 0, reverseModification );
continue;
}