UserDataSourceData pdl = UserDataSourceData.findById(entityManager, userdatasourceid);
if (pdl != null) {
BaseUserDataSource userdatasource = getUserDataSource(pdl);
if(isAuthorizedToEditUserDataSource(admin,userdatasource)){
try {
userdatasource.testConnection(admin);
String msg = intres.getLocalizedMessage("userdatasource.testedcon", pdl.getName());
logSession.log(admin, admin.getCaId(), LogConstants.MODULE_RA, new java.util.Date(), null,
null, LogConstants.EVENT_INFO_USERDATASOURCEDATA,msg);
} catch (UserDataSourceConnectionException pe) {
String msg = intres.getLocalizedMessage("userdatasource.errortestcon", pdl.getName());