code: public static void readGPX(Connection connection, String fileName, String tableReference, boolean deleteTables) throws IOException, SQLException {
          File file = URIUtilities.fileFromString(fileName);
          if (FileUtil.isFileImportable(file, "gpx")) {
              GPXDriverFunction gpxdf = new GPXDriverFunction();
              gpxdf.importFile(connection, tableReference, URIUtilities.fileFromString(fileName), new EmptyProgressVisitor(), deleteTables);
          }
      }
docs: Copy data from GPX File into a new table in specified connection.
  
  @param connection Active connection
  @param tableReference [[catalog.]schema.]table reference
  @param fileName File path of the SHP file
  @param deleteTables  true to delete the existing tables
  @throws java.io.IOException
  @throws java.sql.SQLException