final ClassLoader tccl = SecurityActions.getContextClassLoader();
try {
SecurityActions.setContextClassLoader(classLoader);
//it does not matter if this happens twice
final BeanManager beanManager = weldContainer.getValue().getBeanManager();
final Bean<?> bean = beanManager.resolve(beanManager.getBeans(EjbRequestContext.class, EjbLiteral.INSTANCE));
final CreationalContext<?> ctx = beanManager.createCreationalContext(bean);
EjbRequestContext requestContext = (EjbRequestContext) beanManager.getReference(bean, EjbRequestContext.class, ctx);
interceptor = new EjbRequestScopeActivationInterceptor(requestContext);
} finally {
SecurityActions.setContextClassLoader(tccl);