ObjectPool getPool() {
if (workers == null) {
// create pool
PoolableObjectFactory objectFactory = new AuthorityPoolableObjectFactory();
ObjectPoolFactory poolFactory = new GenericObjectPoolFactory(objectFactory, poolConfig);
this.setPool(poolFactory.createPool());
}
return workers;
}