setStringIfNotNull(xaDataSourceModel, POOLNAME, xaDataSource.getPoolName());
setStringIfNotNull(xaDataSourceModel, URL_DELIMITER, xaDataSource.getUrlDelimiter());
setStringIfNotNull(xaDataSourceModel, URL_SELECTOR_STRATEGY_CLASS_NAME, xaDataSource.getUrlSelectorStrategyClassName());
setBooleanIfNotNull(xaDataSourceModel, USE_JAVA_CONTEXT, xaDataSource.isUseJavaContext());
setBooleanIfNotNull(xaDataSourceModel, ENABLED, xaDataSource.isEnabled());
final CommonXaPool pool = xaDataSource.getXaPool();
if (pool != null) {
setIntegerIfNotNull(xaDataSourceModel, MAX_POOL_SIZE, pool.getMaxPoolSize());
setIntegerIfNotNull(xaDataSourceModel, MIN_POOL_SIZE, pool.getMinPoolSize());
setBooleanIfNotNull(xaDataSourceModel, POOL_PREFILL, pool.isPrefill());
setBooleanIfNotNull(xaDataSourceModel, POOL_USE_STRICT_MIN, pool.isUseStrictMin());
if (pool.getFlushStrategy() != null) {
setStringIfNotNull(xaDataSourceModel, FLUSH_STRATEGY, pool.getFlushStrategy().getName());
}
setBooleanIfNotNull(xaDataSourceModel, INTERLIVING, pool.isInterleaving());
setBooleanIfNotNull(xaDataSourceModel, NOTXSEPARATEPOOL, pool.isNoTxSeparatePool());
setBooleanIfNotNull(xaDataSourceModel, PAD_XID, pool.isPadXid());
setBooleanIfNotNull(xaDataSourceModel, SAME_RM_OVERRIDE, pool.isSameRmOverride());
setBooleanIfNotNull(xaDataSourceModel, WRAP_XA_DATASOURCE, pool.isWrapXaDataSource());
}
final DsSecurity security = xaDataSource.getSecurity();
if (security != null) {
setStringIfNotNull(xaDataSourceModel, USERNAME, security.getUserName());
setStringIfNotNull(xaDataSourceModel, PASSWORD, security.getPassword());