}
@Override
protected ISaikuConnection refreshInternalConnection(String name, SaikuDatasource datasource) {
try {
ISaikuConnection con;
if (connectionPooling) {
String newname = name;
if (userAware && PentahoSessionHolder.getSession().getName() != null) {
newname = name + "-" + PentahoSessionHolder.getSession().getName();
}
con = connections.remove(newname);
} else {
con = getInternalConnection(name, datasource);
}
if (con != null) {
con.clearCache();
}
con = null;
return getInternalConnection(name, datasource);
}
catch (Exception e) {