* Used to encapsulate [de]marshalling of controls before and after moveAndRename operations.
*/
protected void doMove( Dn oldDn, Dn target ) throws Exception
{
// setup the op context and populate with request controls
MoveOperationContext moveContext = new MoveOperationContext( session, oldDn, target );
moveContext.addRequestControls( convertControls( true, requestControls ) );
// Inject the referral handling into the operation context
injectReferralControl( moveContext );
// execute move operation
OperationManager operationManager = service.getOperationManager();
operationManager.move( moveContext );
// clear the request controls and set the response controls
requestControls = EMPTY_CONTROLS;
responseControls = JndiUtils.toJndiControls( getDirectoryService().getLdapCodecService(),
moveContext.getResponseControls() );
}