final HBaseConfiguration config) throws HBqlException {
if (Utils.isValidString(poolName) && getConnectionPoolMap().containsKey(poolName))
throw new HBqlException("Connection pool already exists: " + poolName);
final HConnectionPoolImpl connectionPool = new HConnectionPoolImpl(initialPoolSize,
maxPoolSize,
poolName,
config,
getMaxPoolReferencesPerTablePerConnection());
// Add to map if it has valid name
if (Utils.isValidString(connectionPool.getName()))
getConnectionPoolMap().put(connectionPool.getName(), connectionPool);
return connectionPool;
}