registries = directoryService.getRegistries();
atRegistry = registries.getAttributeTypeRegistry();
this.directoryService = directoryService;
// Initialize the referralManager
referralManager = new ReferralManagerImpl( directoryService );
directoryService.setReferralManager( referralManager );
Value<?> subschemaSubentry = nexus.getRootDSE( null ).get( SchemaConstants.SUBSCHEMA_SUBENTRY_AT ).get();
LdapDN subschemaSubentryDn = new LdapDN( subschemaSubentry.getString() );
subschemaSubentryDn.normalize( atRegistry.getNormalizerMapping() );