for (AppInfo appInfo : appInfos) {
try {
List<DeploymentInfo> deployments = assembler.createApplication(appInfo, assembler.createAppClassLoader(appInfo), true);
if (export) {
for (DeploymentInfo deployment : deployments) {
JndiNameStrategy strategy = createStrategy(appInfo, deployments, deployment);
Map<String, EJB> bindings = getEjbBindings(strategy, (CoreDeploymentInfo) deployment);
for (Entry<String, EJB> entry : bindings.entrySet()) {
String beanName = entry.getKey();
if (!applicationContext.containsBean(beanName)) {
EJB ejb = entry.getValue();