private ContextHandle createContextHandle() {
final ClassLoader tccl = WildFlySecurityManager.getCurrentContextClassLoaderPrivileged();
// If the TCCL is null, use the deployments ModuleClassLoader
final ClassLoaderContextHandle classLoaderContextHandle = (tccl == null ? new ClassLoaderContextHandle(classLoader) : new ClassLoaderContextHandle(tccl));
// Class loader handle must be first so the TCCL is set before the other handles execute
return new ChainedContextHandle(classLoaderContextHandle, new NamespaceContextHandle(), new SecurityContextHandle());
}