.passivationCapable(false).beanClass(LoginBean.class)
.injectionPoints(bean.getInjectionPoints()).name(config.getAliasNameLoginbean())
.scope(bean.getScope()).addQualifiers(bean.getQualifiers())
.addTypes(bean.getTypes()).alternative(bean.isAlternative()).nullable(bean.isNullable())
.stereotypes(bean.getStereotypes())
.beanLifecycle(new DelegatingContextualLifecycle(loginInjectionTarget)).create();
afterBeanDiscovery.addBean(newBean);
}
}