Connection connection = null;
//calls implementation for gets data source object
DataSourceSupplier supplierDS = new DataSourceSupplier();
SpagoBiDataSource ds = supplierDS.getDataSourceByLabel(dsLabel);
logger.debug("Schema Attribute:"+ ds.getSchemaAttribute());
String schema=null;
if (profile!=null){
schema=UserUtilities.getSchema(ds.getSchemaAttribute(),profile);
logger.debug("Schema:"+ schema);
}
try {
connection = ds.readConnection(schema);
} catch (NamingException e) {
logger.error("JNDI error", e);
} catch (SQLException e) {
logger.error("Cannot retrive connection", e);
} catch (ClassNotFoundException e) {