// Inject the referral handling into the operation context
injectReferralControl( opContext );
// Call the operation
boolean result = operationManager.compare( (CompareOperationContext)opContext );
// setup the op context and populate with request controls
opContext = new SearchOperationContext( session, dn, aliasDerefMode, filter,
searchControls );
opContext.addRequestControls( requestControls );