* common metadata layer.
*/
private void lookup(Method method, ResultCallback callback)
{
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() + ". " +
"Please verify that the @" + OperateOnDeployment.class.getSimpleName() + " annotation on method " + method.getName() + " match a defined " +
"@" + org.jboss.arquillian.container.test.api.Deployment.class.getSimpleName() + ".name");
}
if(deployment != null)
{