code: public static void readGPX(Connection connection, String fileName) throws IOException, SQLException {
          final String name = URIUtilities.fileFromString(fileName).getName();
          String tableName = name.substring(0, name.lastIndexOf(".")).toUpperCase();
          if (tableName.matches("^[a-zA-Z][a-zA-Z0-9_]*$")) {
              readGPX(connection, fileName, tableName);
          } else {
              throw new SQLException("The file name contains unsupported characters");
          }
      }
docs: Copy data from GPX File into a new table in specified connection.
  
  
  @param connection
  @param fileName
  @throws IOException
  @throws SQLException