code: public static Statement open(String driverklass, String jdbcuri,
                                 Properties props) {
      try {
        Driver driver = (Driver) ObjectUtils.instantiate(driverklass);
        Connection conn = driver.connect(jdbcuri, props);
        if (conn == null)
          throw new DukeException("Couldn't connect to database at " +
                                     jdbcuri);
        return conn.createStatement();
  
      } catch (SQLException e) {
        throw new DukeException(e);
      }
    }
docs: Opens a JDBC connection with the given parameters.