DeploymentTargetDescription deploymentTarget = locateDeployment(method);
ContainerRegistry containerRegistry = this.containerRegistry.get();
DeploymentScenario deploymentScenario = this.deploymentScenario.get();
Deployment deployment = deploymentScenario.deployment(deploymentTarget);
if(deployment == null && deploymentTarget != DeploymentTargetDescription.DEFAULT)
{
// trying to operate on a non existing DeploymentTarget (which is not the DEFAULT)
throw new IllegalStateException(
"No deployment found in " + DeploymentScenario.class.getSimpleName() + " for defined target: " + deploymentTarget.getName() + ". " +