Make code using new ThreadWeaver API work