.addDependency( name, BasicRubyRuntimePoolMBean.class, mbeanService.getValueInjector() )
.setInitialMode( Mode.PASSIVE )
.install();
} else {
DefaultRubyRuntimePool pool = new DefaultRubyRuntimePool();
pool.setName( poolMetaData.getName() );
pool.setMinimumInstances( poolMetaData.getMinimumSize() );
pool.setMaximumInstances( poolMetaData.getMaximumSize() );
pool.setDeferUntilRequested( poolMetaData.isDeferUntilRequested() );
RestartableRubyRuntimePool restartablePool = new RestartableRubyRuntimePool( pool );
RubyRuntimeFactoryPoolService service = new RubyRuntimeFactoryPoolService( restartablePool );
ServiceName name = CoreServices.runtimePoolName( unit, pool.getName() );
phaseContext.getServiceTarget().addService( name, service )
.addDependency( CoreServices.runtimeFactoryName( unit ), RubyRuntimeFactory.class, service.getRubyRuntimeFactoryInjector() )
.addDependency( CoreServices.appNamespaceContextSelector( unit ), NamespaceContextSelector.class, service.getNamespaceContextSelectorInjector() )
.install();