*/
public static DataConnection getDataConnection(Connection con) throws EMFInternalError {
DataConnection dataCon = null;
try {
Class mapperClass = Class.forName("it.eng.spago.dbaccess.sql.mappers.OracleSQLMapper");
SQLMapper sqlMapper = (SQLMapper)mapperClass.newInstance();
dataCon = new DataConnection(con, "2.1", sqlMapper);
} catch(Exception e) {
SpagoBITracer.major(SpagoBIConstants.NAME_MODULE, DelegatedHibernateConnectionListService.class.getName() , "getDataConnection",
"Error while getting Spago DataConnection " + e);
throw new EMFInternalError(EMFErrorSeverity.ERROR, "cannot build DataConnection object");