factory.setInstance(JavaScriptService.class, new JavaScriptServiceImpl());
factory.setInstance(GenericsIntrospectionService.class, new GenericsIntrospectionServiceImpl());
factory.setInstance(ResourceTracker.class, new ResourceTrackerImpl());
factory.setInstance(MappedResourceFactory.class, new MappedResourceFactoryImpl());
// factory.setInstance(FocusManager.class, ServiceLoader.loadService(FocusManager.class, FocusManagerImpl.class));
factory.setInstance(ResourceMappingConfiguration.class, new ResourceMappingConfiguration());
// workaround for loading service from richfaces module (needs to be bypassed during tests)
FocusManager focusManager = ServiceLoader.loadService(FocusManager.class);
if (focusManager == null) {
LOG.warn("There was no service " + FocusManager.class.getName() + " found");