@Inject
private Instance<ServiceLoader> serviceLoader;
public void afterExtensionConfigured(@Observes ScreenshooterExtensionConfigured event) {
ScreenshootingStrategy strategy = serviceLoader.get()
.onlyOne(ScreenshootingStrategy.class, DefaultScreenshootingStrategy.class);
strategy.setConfiguration(configuration.get());
ScreenshooterEnvironmentCleaner cleaner = serviceLoader.get()
.onlyOne(ScreenshooterEnvironmentCleaner.class, DefaultScreenshooterEnvironmentCleaner.class);
this.strategy.set(strategy);