private void configureThreadPoolSize( BoundedExecutor executor, String configuration, int defaultValue) { int n = (configuration != null) ? Integer.parseInt(configuration) : defaultValue; executor.setMaximumPoolSize(n); }