}
/* 19.2: ejb-name: Default is the unqualified name of the bean class */
EjbJar ejbJar = ejbModule.getEjbJar();
List<Class> classes = finder.findAnnotatedClasses(Stateless.class);
for (Class<?> beanClass : classes) {
Stateless stateless = beanClass.getAnnotation(Stateless.class);
String ejbName = stateless.name().length() == 0 ? beanClass.getSimpleName() : stateless.name();
EnterpriseBean enterpriseBean = ejbJar.getEnterpriseBean(ejbName);
if (enterpriseBean == null) {