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(
final Runnable runnable) {
// do the following section as privileged
// so that it will work even when java2 security