DirectoryService directoryService = modifyContext.getSession().getDirectoryService();
// Compute the next interceptor for the Add and Delete operation, starting from
// the schemaInterceptor. We also need to get the position of this next interceptor
// in the operation's list.
Interceptor nextAdd = findNextInterceptor( OperationEnum.ADD, directoryService );
int positionAdd = findPosition( OperationEnum.ADD, nextAdd, directoryService );
Interceptor nextDelete = findNextInterceptor( OperationEnum.DELETE, directoryService );
int positionDelete = findPosition( OperationEnum.DELETE, nextDelete, directoryService );
for ( Modification mod : modifyContext.getModItems() )
{
String opAttrOid = schemaManager.getAttributeTypeRegistry().getOidByName( mod.getAttribute().getId() );