{ String methodName = "openConnection";  if( sm_logger.isLoggingEnterExitLevel() ) sm_logger.entering( sm_className, methodName, new Object[] { dataSourceElementId, connectionProperties } );  try { DriverManager driverMgr = DriverManager.getInstance();    driverMgr.setDriverLogConfiguration( dataSourceElementId );   IDriver driverHelper = driverMgr.getDriverHelper( dataSourceElementId ); String dataSourceId = driverMgr.getExtensionDataSourceId( dataSourceElementId ); IConnection connection = driverHelper.getConnection( dataSourceId ); connection.open( connectionProperties );  Connection ret = ( new Connection( connection, dataSourceElementId ) );  sm_logger.exiting( sm_className, methodName, ret ); return ret; } catch( OdaException ex ) { sm_logger.logp( Level.SEVERE, sm_className, methodName, "Cannot open connection.", ex );  throw new DataException( ResourceConstants.CANNOT_OPEN_CONNECTION, ex, new Object[] { dataSourceElementId } ); } catch( UnsupportedOperationException ex ) { sm_logger.logp( Level.SEVERE, sm_className, methodName, "Cannot open connection.", ex );  throw new DataException( ResourceConstants.CANNOT_OPEN_CONNECTION, ex, new Object[] { dataSourceElementId } ); } }
{ return openConnection( dataSourceElementId, connectionProperties, null ); }
	public Connection openConnection( String dataSourceElementId, 									  Properties connectionProperties )		throws DataException	{		String methodName = "openConnection";				if( sm_logger.isLoggingEnterExitLevel() )			sm_logger.entering( sm_className, methodName, 								new Object[] { dataSourceElementId, connectionProperties } );				try		{            DriverManager driverMgr = DriverManager.getInstance();            // passes ODA framework's trace logging configuration settings             // to the ODA consumer helper and driver itself            driverMgr.setDriverLogConfiguration( dataSourceElementId );            // gets the driver's connection to open            IDriver driverHelper =                 driverMgr.getDriverHelper( dataSourceElementId );			String dataSourceId =                 driverMgr.getExtensionDataSourceId( dataSourceElementId );          			IConnection connection = driverHelper.getConnection( dataSourceId );			connection.open( connectionProperties );						Connection ret = ( new Connection( connection, dataSourceElementId ) );						sm_logger.exiting( sm_className, methodName, ret );				return ret;		}		catch( OdaException ex )		{			sm_logger.logp( Level.SEVERE, sm_className, methodName, 							"Cannot open connection.", ex );						throw new DataException( ResourceConstants.CANNOT_OPEN_CONNECTION, ex, 			                         new Object[] { dataSourceElementId } );		}		catch( UnsupportedOperationException ex )		{			sm_logger.logp( Level.SEVERE, sm_className, methodName, 							"Cannot open connection.", ex );						throw new DataException( ResourceConstants.CANNOT_OPEN_CONNECTION, ex, 			                         new Object[] { dataSourceElementId } );		}	}