final List<PlexusBeanModule> beanModules = new ArrayList<PlexusBeanModule>();
final ClassSpace space = new URLClassSpace( containerRealm );
beanModules.add( new PlexusXmlBeanModule( space, variables, plexusXml ) );
final BeanScanning global = BeanScanning.INDEX == scanning ? BeanScanning.GLOBAL_INDEX : scanning;
beanModules.add( new PlexusAnnotatedBeanModule( space, variables, global ) );
try
{
addPlexusInjector( beanModules, new BootModule( customModules ) );
}