AttributeTypeRegistry registry = globalRegistries.getAttributeTypeRegistry(); Iterator list = registry.list(); while ( list.hasNext() )
AttributeTypeRegistry registry = globalRegistries.getAttributeTypeRegistry(); Iterator list = registry.list(); while ( list.hasNext() ) { AttributeType type = ( AttributeType ) list.next(); if ( ! type.getSyntax().isHumanReadible() )
    private void initialize() throws NamingException    {        // --------------------------------------------------------------------        // Load the schema here and check that it is ok!        // --------------------------------------------------------------------        BootstrapRegistries bootstrapRegistries = new BootstrapRegistries();        BootstrapSchemaLoader loader = new BootstrapSchemaLoader();        loader.load( startupConfiguration.getBootstrapSchemas(), bootstrapRegistries );        java.util.List errors = bootstrapRegistries.checkRefInteg();        if ( !errors.isEmpty() )        {            NamingException e = new NamingException();            e.setRootCause( ( Throwable ) errors.get( 0 ) );            throw e;        }        globalRegistries = new GlobalRegistries( bootstrapRegistries );                if ( this.environment.containsKey( BINARY_KEY ) )        {            if ( log.isInfoEnabled() )            {                log.info( "Startup environment contains " + BINARY_KEY );            }            String binaryIds = ( String ) this.environment.get( BINARY_KEY );            Set binaries = new HashSet();            if ( binaryIds == null )            {                if ( log.isWarnEnabled() )                {                    log.warn( BINARY_KEY + " in startup environment contains null value.  " +                        "Using only schema info to set binary attributeTypes." );                }            }            else            {                if ( ! StringUtils.isEmpty( binaryIds ) )                {                    String[] binaryArray = binaryIds.split( " " );                    for ( int i = 0; i < binaryArray.length; i++ )                    {                        binaries.add( StringUtils.lowerCase( StringUtils.trim( binaryArray[i] ) ) );                    }                }                if ( log.isInfoEnabled() )                {                    log.info( "Setting binaries to union of schema defined binaries and those provided in "                            + BINARY_KEY );                }            }            AttributeTypeRegistry registry = globalRegistries.getAttributeTypeRegistry();            Iterator list = registry.list();            while ( list.hasNext() )            {                AttributeType type = ( AttributeType ) list.next();                if ( ! type.getSyntax().isHumanReadible() )                {                    // add the OID for the attributeType                    binaries.add( type.getOid() );                    // add the lowercased name for the names for the attributeType                    String[] names = type.getNames();                    for ( int ii = 0; ii < names.length; ii++ )                    {                        binaries.add( StringUtils.lowerCase( StringUtils.trim( names[ii] ) ) );                    }                }            }            this.environment.put( BINARY_KEY, binaries );            if ( log.isDebugEnabled() )            {                log.debug( "binary ids used: " + binaries );            }        }        partitionNexus = new DefaultDirectoryPartitionNexus( new LockableAttributesImpl() );        partitionNexus.init( configuration, null );                interceptorChain = new InterceptorChain();        interceptorChain.init( configuration );    }