// override previous password value
super.setPassword(plainPwd);
}
// get the plugin
final DataSourcePlugin helper = BasicDataSourceUtil.getDataSourcePlugin(getUrl());
// configure this
if (helper != null) {
final String currentUrl = getUrl();
final String newUrl = helper.updatedUrl(currentUrl);
if (!currentUrl.equals(newUrl)) {
super.setUrl(newUrl);
}
}
wrapTransactionManager();
// create the data source
if (helper == null || !helper.enableUserDirHack()) {
try {
return super.createDataSource();
} catch (final Throwable e) {
throw BasicDataSource.toSQLException(e);
}