// Unlock the referral manager
directoryService.getReferralManager().unlock();
// The parent DN is a referral, we have to issue a AffectMultipleDsas result
// as stated by RFC 3296 Section 5.6.2
LdapNamingException exception = new LdapNamingException( ResultCodeEnum.AFFECTS_MULTIPLE_DSAS );
exception.setRemainingName( dn );
throw exception;
}
// Unlock the ReferralManager