private final transient InterceptorContext interceptorContext;
private EJBContextHandle() {
final InterceptorContext interceptorContext = CurrentInvocationContext.get();
if(interceptorContext != null) {
this.interceptorContext = interceptorContext.clone();
// overwrite invocation type so EE concurrency tasks have special access to resources such as the user tx
this.interceptorContext.putPrivateData(InvocationType.class, InvocationType.CONCURRENT_CONTEXT);
} else {
this.interceptorContext = null;
}