@Inject
private Instance<ProtocolRegistry> protocolRegistry;
public void generateDeployment(@Observes GenerateDeployment event)
{
DeploymentScenarioGenerator generator = serviceLoader.get().onlyOne(
DeploymentScenarioGenerator.class, AnnotationDeploymentScenarioGenerator.class);
DeploymentScenario scenario = generator.generate(event.getTestClass());
validate(scenario);
createTestableDeployments(scenario, event.getTestClass());
deployment.set(scenario);
}