} else {
pds = new XAPoolDataSource();
pds.setPoolName(helperInfo.getHelperFullName());
}
XADataSourceImpl ds = new XADataSourceImpl();
if (ds == null) {
throw new GenericEntityException("XADataSource was not created, big problem!");
}
String jdbcUri = UtilValidate.isNotEmpty(helperInfo.getOverrideJdbcUri()) ? helperInfo.getOverrideJdbcUri() : jdbcElement.getAttribute("jdbc-uri");
String jdbcUsername = UtilValidate.isNotEmpty(helperInfo.getOverrideUsername()) ? helperInfo.getOverrideUsername() : jdbcElement.getAttribute("jdbc-username");
String jdbcPassword = UtilValidate.isNotEmpty(helperInfo.getOverridePassword()) ? helperInfo.getOverridePassword() : jdbcElement.getAttribute("jdbc-password");
ds.setDriver(jdbcElement.getAttribute("jdbc-driver"));
ds.setURL(jdbcUri);
String transIso = jdbcElement.getAttribute("isolation-level");
if (UtilValidate.isNotEmpty(transIso)) {
if ("Serializable".equals(transIso)) {
pds.setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE);