Enable Thread Executor to create different context types