int size = CamelContextHelper.parseInteger(camelContext, threadPoolDefinition.getPoolSize());
int max = CamelContextHelper.parseInteger(camelContext, threadPoolDefinition.getMaxPoolSize());
long keepAlive = CamelContextHelper.parseLong(camelContext, threadPoolDefinition.getKeepAliveTime());
int queueSize = CamelContextHelper.parseInteger(camelContext, threadPoolDefinition.getMaxQueueSize());
TimeUnit unit = threadPoolDefinition.getTimeUnit();
RejectedExecutionHandler handler = threadPoolDefinition.getRejectedExecutionHandler();
ExecutorService answer = camelContext.getExecutorServiceStrategy().newThreadPool(source, name,
size, max, keepAlive, unit, queueSize, handler, true);
return answer;
}