* Used to encapsulate [de]marshalling of controls before and after modify operations.
*/
protected void doModifyOperation( LdapDN dn, List<Modification> modifications ) throws Exception
{
// setup the op context and populate with request controls
ModifyOperationContext opCtx = new ModifyOperationContext( session, dn, modifications );
opCtx.addRequestControls( requestControls );
// Inject the referral handling into the operation context
injectReferralControl( opCtx );
// execute modify operation
OperationManager operationManager = service.getOperationManager();
operationManager.modify( opCtx );
// clear the request controls and set the response controls
requestControls = EMPTY_CONTROLS;
responseControls = opCtx.getResponseControls();
}