//we just look up the service rather than using a dependency
//the component itself has a dependency on this service, which means that it has to be up
final WeldContainer weldContainer = (WeldContainer) CurrentServiceContainer.getServiceContainer().getRequiredService(weldContainerServiceName).getValue();
final BeanManagerImpl beanManager = (BeanManagerImpl) weldContainer.getBeanManager();
final Bean<?> bean = beanManager.resolve(beanManager.getBeans(EjbRequestContext.class, EjbLiteral.INSTANCE));
final CreationalContext<?> ctx = beanManager.createCreationalContext(bean);
requestContext = (EjbRequestContext) beanManager.getReference(bean, EjbRequestContext.class, ctx);
}
try {
requestContext.associate(context.getInvocationContext());
requestContext.activate();