* @param target
*/
protected void doDeleteOperation( Dn target ) throws Exception
{
// setup the op context and populate with request controls
DeleteOperationContext deleteContext = new DeleteOperationContext( session, target );
deleteContext.addRequestControls( convertControls( true, requestControls ) );
// Inject the referral handling into the operation context
injectReferralControl( deleteContext );
// execute delete operation
OperationManager operationManager = service.getOperationManager();
operationManager.delete( deleteContext );
// clear the request controls and set the response controls
requestControls = EMPTY_CONTROLS;
responseControls = JndiUtils.toJndiControls( getDirectoryService().getLdapCodecService(),
deleteContext.getResponseControls() );
}