*
* @return the database connection
*/
private Connection getConnection(String requestConnectionName,HttpSession session,IEngUserProfile profile,String documentId) {
logger.debug("IN.documentId:"+documentId);
DataSourceServiceProxy proxyDS = new DataSourceServiceProxy((String)profile.getUserUniqueIdentifier(),session);
IDataSource ds =null;
if (requestConnectionName!=null){
ds = proxyDS.getDataSourceByLabel(requestConnectionName);
}else{
ds = proxyDS.getDataSource(documentId);
}
String schema=null;
try {
if (ds.checkIsMultiSchema()){