if (executor.isShutdown()) {
throw new IllegalStateException(
"Executor has been shut down already.");
}
Executor executor = new UnterminatableExecutor(this.executor);
bind(Executor.class).
annotatedWith(ChannelFactoryResource.class).
toInstance(executor);