ComponentRegistry componentRegistry = new DefaultComponentRegistry( context.getContainer(),
lifecycleHandlerManager );
componentRegistry.registerComponentManagerFactory( new PerLookupComponentManagerFactory() );
componentRegistry.registerComponentManagerFactory( new SingletonComponentManagerFactory() );
initializeComponentRegistry( componentRegistry, context );
context.getContainer().setComponentRegistry( componentRegistry );
}