// --------------------------------------------------------------------
// Load the bootstrap schemas to start up the schema partition
// --------------------------------------------------------------------
// setup temporary loader and temp registry
BootstrapSchemaLoader loader = new BootstrapSchemaLoader();
registries = new DefaultRegistries( "bootstrap", loader, new DefaultOidRegistry() );
directoryService.setRegistries( registries );
// load essential bootstrap schemas
Set<Schema> bootstrapSchemas = new HashSet<Schema>();
bootstrapSchemas.add( new ApachemetaSchema() );
bootstrapSchemas.add( new ApacheSchema() );
bootstrapSchemas.add( new CoreSchema() );
bootstrapSchemas.add( new SystemSchema() );
loader.loadWithDependencies( bootstrapSchemas, registries );
// run referential integrity tests
List<Throwable> errors = registries.checkRefInteg();
if ( !errors.isEmpty() )