{
if (enterpriseBean.getPoolConfig() != null)
{
PoolConfigMetaData config = enterpriseBean.getPoolConfig();
PoolImpl poolAnnotation = new PoolImpl();
if (config.getValue() != null && !config.getValue().trim().equals(""))
poolAnnotation.setValue(config.getValue());
// EJBTHREE-1119
if(config.getValue()==null || config.getValue().trim().equals(""))
{
// Set default implementation to Threadlocal
poolAnnotation.setValue(PoolDefaults.POOL_IMPLEMENTATION_THREADLOCAL);
}
if (config.getMaxSize() != null)
poolAnnotation.setMaxSize(config.getMaxSize());
if (config.getTimeout() != null)
poolAnnotation.setTimeout(config.getTimeout());
addClassAnnotation(container, Pool.class, poolAnnotation);
}
}