if (!supportsPooling) {
// If session pooling isn't supported, then we don't need to
// check the rest of the session pooling configuration, but can
// just create an UnpooledSessionPool which just creates a new
// Session for each request.
sessionPool = new UnpooledSessionPool(sessionFactory,
poolSize, validateBeforeUse);
} else {
// Otherwise determine the rest of the pool configuration info.
poolSize = getIntValue(channelInfo, POOL_SIZE, false,
SessionPool.UNLIMITED_ACTIVE_SESSIONS);