ConfigContext configContext = serverContext.getConfigContext();
assert(configContext != null);
// IiopService iiopServiceBean = ServerBeansFactory.getIiopServiceBean(configContext);
Config config = ServerBeansFactory.getConfigBean(configContext);
assert(config != null);
// orbBean = iiopServiceBean.getOrb();
com.sun.enterprise.config.serverbeans.ThreadPools
threadpoolsElement = config.getThreadPools();
assert (threadpoolsElement != null);
com.sun.enterprise.config.serverbeans.ThreadPool[]
allThreadpools = threadpoolsElement.getThreadPool();
for (int i = 0; i < allThreadpools.length; i++) {