{
final int WORKER_THREAD_COUNT = 43;
final ExecutorService myExecutor = Executors.newFixedThreadPool(WORKER_THREAD_COUNT);
Bootstrap bootstrap = new Bootstrap(
new ThriftCodecModule(),
overrideThriftServerModuleWithWorkerExecutorInstance(myExecutor),
new AbstractModule()
{
@Override
protected void configure()