ClassLoader classLoader = ejbModule.getClassLoader();
ejbModuleInfo.setmoduleClassloader(classLoader);
Map<String, EnterpriseBean> beansMap = ejbJar.getEnterpriseBeansByEjbName();
for (Map.Entry<String, EnterpriseBean> entry : beansMap.entrySet()) {
EnterpriseBean bean = entry.getValue();
EjbInfo ejbInfo = null;
if (bean instanceof SessionBean) {
SessionBean sbean = (SessionBean)bean;
ejbInfo = createEjbInfo(sbean, classLoader);
} else if (bean instanceof MessageDrivenBean) {
MessageDrivenBean mdbean = (MessageDrivenBean)bean;