code: public static ThreadPoolExecutorFactoryBean newThreadPoolExecutorFactoryBean(final ConnectionPoolingProperties config) {
          val bean = new ThreadPoolExecutorFactoryBean();
          bean.setMaxPoolSize(config.getMaxSize());
          bean.setCorePoolSize(config.getMinSize());
          return bean;
      }
docs: New thread pool executor factory bean.
  
  @param config the config
  @return the thread pool executor factory bean