/* 949 */ throw new RuntimeException(e);
/* */ }
/* */
/* */ private static Ejb3DeploymentSummary getDeploymentSummaryFromContainer(Container container)
/* */ {
/* 956 */ Ejb3DeploymentSummary summary = new Ejb3DeploymentSummary();
/* 957 */ summary.setEjbName(container.getEjbName());
/* 958 */ summary.setService(container instanceof ServiceContainer);
/* 959 */ summary.setStateful(container instanceof StatefulContainer);
/* 960 */ summary.setDeploymentName(((EJBContainer)container).getDeployment().getName());
/* 961 */ summary.setBeanClass(container.getBeanClass());
/* 962 */ if ((container instanceof EJBContainer))
/* */ {
/* 964 */ DeploymentScope scope = ((EJBContainer)container).getDeployment().getEar();
/* 965 */ if (scope != null)
/* */ {
/* 967 */ summary.setDeploymentScopeBaseName(scope.getBaseName());
/* */ }
/* */ }
/* 970 */ return summary;
/* */ }