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