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());
setStringIfNotNull(xaDataSourceModel, SECURITY_DOMAIN, security.getSecurityDomain());
setExtensionIfNotNull(xaDataSourceModel, REAUTHPLUGIN_CLASSNAME, REAUTHPLUGIN_PROPERTIES,
security.getReauthPlugin());
}
final Statement statement = xaDataSource.getStatement();
if (statement != null) {
setLongIfNotNull(xaDataSourceModel, PREPAREDSTATEMENTSCACHESIZE, statement.getPreparedStatementsCacheSize());
setBooleanIfNotNull(xaDataSourceModel, SHAREPREPAREDSTATEMENTS, statement.isSharePreparedStatements());