factory.setInstance(ResourceLibraryFactory.class, new ResourceLibraryFactoryImpl());
factory.setInstance(PushContextFactory.class,
ServiceLoader.loadService(PushContextFactory.class, PushContextFactoryImpl.class));
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)