code: public ConnectedCrud<T, K> to(DataSource dataSource) throws SQLException {
          Connection connection = dataSource.getConnection();
          try {
              return new ConnectedCrud<T, K>(new DataSourceTransactionTemplate(dataSource), to(connection));
          } finally {
              connection.close();
          }
      }
docs: Create a connected crud validating it against the specified datasource.
  The table name is derived from the jpa annotation or from the class name.
  @param dataSource the datasource
  @return a new crud instance
  @throws SQLException if an error occurred