if (_username == null) { connection = getDataSource().getConnection(); } else { connection = getDataSource().getConnection(_username, _password); }
    public Connection borrowConnection() throws DynaSqlException    {        try        {            Connection connection = getDataSource().getConnection();            if (_log.isDebugEnabled())            {                String connName = connection.toString();                _log.debug("Borrowed connection "+connName+" from data source");                _openConnectionNames.add(connName);            }            return connection;        }        catch (SQLException ex)        {            throw new DynaSqlException("Could not get a connection from the datasource", ex);        }    }