code: public static DataSource getDataSource(Connection conn) {
          if (conn == null) {
              return null;
          }
          String dsName = openConnDsName.get().get(conn);
          return getJdbcDataSource(dsName);
      }
docs: Get the {@link DataSource} that hosts the specified {@link Connection}.
  
  @param conn
  @return
  @since 0.8.2