code: public Connection getConnection() throws SQLException {
  		Connection conn = threadLocal.get();
  		if (conn != null)
  			return conn;
  		return showSql ? new SqlReporter(dataSource.getConnection()).getConnection() : dataSource.getConnection();
  	}
docs: Get Connection. Support transaction if Connection in ThreadLocal