protected void verify(final String appName, final String moduleName, final String distinctName, final String beanName) throws Exception {
findBean(appName, moduleName, distinctName, beanName);
}
private EjbDeploymentInformation findBean(final String appName, final String moduleName, final String distinctName, final String beanName) {
final ModuleDeployment module = deploymentRepository.getValue().getModules().get(new DeploymentModuleIdentifier(appName, moduleName, distinctName));
if (module == null) {
throw new IllegalArgumentException("Could not find module app: " + appName + " module: " + moduleName + " distinct name:" + distinctName);
}
final EjbDeploymentInformation ejbInfo = module.getEjbs().get(beanName);
if (ejbInfo == null) {
throw new IllegalArgumentException("Could not find ejb " + beanName + " in app: " + appName + " module: " + moduleName + " distinct name:" + distinctName);
}
return ejbInfo;
}