if (annotated.isAnnotationPresent(Stateful.class)
|| annotated.isAnnotationPresent(Stateless.class)
|| annotated.isAnnotationPresent(Singleton.class)
|| annotated.isAnnotationPresent(MessageDriven.class)
|| annotated.isAnnotationPresent(JmsMessageListener.class)) {
EjbContainer ejbContainer = EjbContainer.create();
AnnotatedType<T> annType = absBean.getAnnotatedType();
if (annType != null) {
ejbContainer.createBean(annType, absBean.getInjectionTarget());
if (event instanceof ProcessBeanImpl)
((ProcessBeanImpl) event).veto();
}
}