}
// server/12dt
// for backward compatibility <resource> is always ApplicationScoped
// factory.scope(ApplicationScoped.class);
factory.scope(Singleton.class);
if (_object != null)
beanManager.addBean(factory.singleton(_object));
else
beanManager.addBean(factory.bean());