protected ThreadPoolExecutor createDefaultExecutor(final String name,
final int priority,
final boolean daemon) {
ThreadPoolExecutor rc = new ThreadPoolExecutor(corePoolSize , maxPoolSize , 10,
TimeUnit.SECONDS, new SynchronousQueue(),
new edu.emory.mathcs.backport.java.util.concurrent.ThreadFactory() {
public Thread newThread(Runnable runnable) {
Thread thread = new Thread(runnable, name);
thread.setDaemon(daemon);
thread.setPriority(priority);