Map<Class<?>, Object> initialServices = new HashMap<Class<?>, Object>();
initialServices.put(ScannerService.class, dummyScannerService);
// this is needed because of a dirty hack in the OpenWebBeansConfiguration
initialServices.put(SecurityService.class, new SimpleSecurityService());
Properties initialConfig = new Properties();
webBeansContext = new WebBeansContext(initialServices, initialConfig);
webBeansContext.getOpenWebBeansConfiguration().parseConfiguration();